configProviderMock = $this->getMockForAbstractClass(ConfigProviderInterface::class); $this->model = new CompositeConfigProvider([$this->configProviderMock]); } public function testGetConfig() { $configMock = ['configuration' => ['option_1' => 'enabled']]; $this->configProviderMock->expects($this->once())->method('getConfig')->willReturn($configMock); $this->assertSame($configMock, $this->model->getConfig()); } }