protected function ConfigUpdateUnitTestBase::getThemeHandlerMock in Configuration Update Manager 8
Creates a mock theme handler for the test.
File
- tests/src/ Unit/ ConfigUpdateUnitTestBase.php, line 284 
Class
- ConfigUpdateUnitTestBase
- Base class for unit testing in Config Update Manager.
Namespace
Drupal\Tests\config_update\UnitCode
protected function getThemeHandlerMock() {
  $manager = $this
    ->getMockBuilder('Drupal\\Core\\Extension\\ThemeHandlerInterface')
    ->getMock();
  $manager
    ->method('listInfo')
    ->willReturn([
    'foo_theme' => '',
  ]);
  return $manager;
}