28 $this->sourceMock = $this->getMockBuilder(ConfigSourceInterface::class)->getMock();
32 'source' => $this->sourceMock,
60 $this->sourceMock->expects($this->once())->method(
'get')->with(
'')->willReturn(
$configData);
62 $this->assertEquals($expectedResult, $this->unit->get(
$path));
75 $this->sourceMock->expects($this->any())->method(
'get')->willReturnMap([
76 [
'', $initConfigData],
80 $this->assertNull($this->unit->get(
'websites/1'));
testGetConfigWhenDataIsNotPresentInInternalCacheAndNotFound()
testGet($path, $expectedResult)