function ExtensionListTest::getMocks
3 calls to ExtensionListTest::getMocks()
- ExtensionListTest::setupTestExtensionList in core/
tests/ Drupal/ Tests/ Core/ Extension/ ExtensionListTest.php  - Sets up an a test extension list.
 - ExtensionListTest::testGetNameWithNonExistingExtension in core/
tests/ Drupal/ Tests/ Core/ Extension/ ExtensionListTest.php  - Tests get name with non existing extension.
 - ExtensionListTest::testGetWithNonExistingExtension in core/
tests/ Drupal/ Tests/ Core/ Extension/ ExtensionListTest.php  - Tests get with non existing extension.
 
File
- 
              core/
tests/ Drupal/ Tests/ Core/ Extension/ ExtensionListTest.php, line 345  
Class
Namespace
Drupal\Tests\Core\ExtensionCode
protected function getMocks() : array {
  $cache = $this->prophesize(CacheBackendInterface::class);
  $info_parser = $this->prophesize(InfoParserInterface::class);
  $module_handler = $this->prophesize(ModuleHandlerInterface::class);
  $state = $this->prophesize(StateInterface::class);
  return [
    $cache,
    $info_parser,
    $module_handler,
    $state,
  ];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.