protected function ConfigUpdateUnitTestBase::getConfigFactoryMock in Configuration Update Manager 8
Creates a mock config factory class for the test.
1 call to ConfigUpdateUnitTestBase::getConfigFactoryMock()
- ConfigReverterTest::setUp in tests/
src/ Unit/ ConfigReverterTest.php
File
- tests/
src/ Unit/ ConfigUpdateUnitTestBase.php, line 376
Class
- ConfigUpdateUnitTestBase
- Base class for unit testing in Config Update Manager.
Namespace
Drupal\Tests\config_update\UnitCode
protected function getConfigFactoryMock() {
$config = $this
->getMockBuilder('Drupal\\Core\\Config\\ConfigFactoryInterface')
->getMock();
$config
->method('getEditable')
->will($this
->returnCallback([
$this,
'mockGetEditable',
]));
return $config;
}