Search for all

  1. Search 7.x for all
  2. Search 9.5.x for all
  3. Search 8.9.x for all
  4. Search 10.3.x for all
  5. Search main for all
  6. Other projects
Title Object type File name Summary
MockAliasManager::$aliases property core/modules/system/src/Tests/Routing/MockAliasManager.php Array of mocked aliases. Keys are system paths, followed by language.
MockAliasManager::$defaultLanguage property core/modules/system/src/Tests/Routing/MockAliasManager.php The language to assume a path alias is for if not specified.
MockAliasManager::$lookedUp property core/modules/system/src/Tests/Routing/MockAliasManager.php An index of aliases that have been requested.
MockAliasManager::$systemPaths property core/modules/system/src/Tests/Routing/MockAliasManager.php Array of mocked aliases. Keys are aliases, followed by language.
MockAliasManager::addAlias function core/modules/system/src/Tests/Routing/MockAliasManager.php Adds an alias to the in-memory alias table for this object.
MockAliasManager::cacheClear function core/modules/system/src/Tests/Routing/MockAliasManager.php Clears the static caches in alias manager and rebuilds the prefix list.
MockAliasManager::getAliasByPath function core/modules/system/src/Tests/Routing/MockAliasManager.php
MockAliasManager::getPathByAlias function core/modules/system/src/Tests/Routing/MockAliasManager.php Given the alias, return the path it represents.
MockBlockManager class core/modules/system/tests/modules/plugin_test/src/Plugin/MockBlockManager.php Defines a plugin manager used by Plugin API derivative unit tests.
MockBlockManager.php file core/modules/system/tests/modules/plugin_test/src/Plugin/MockBlockManager.php
MockBlockManager::createContextDefinition function core/modules/system/tests/modules/plugin_test/src/Plugin/MockBlockManager.php Creates a new context definition with a label that is cast to string.
MockBlockManager::__construct function core/modules/system/tests/modules/plugin_test/src/Plugin/MockBlockManager.php
MockClient class core/tests/Drupal/Tests/Core/Test/WebAssertTest.php A mock client.
MockClient::doRequest function core/tests/Drupal/Tests/Core/Test/WebAssertTest.php
MockClient::setExpectedResponse function core/tests/Drupal/Tests/Core/Test/WebAssertTest.php
MockComplexContextBlock class core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockComplexContextBlock.php Implementation of a complex context plugin used by Plugin API context tests.
MockComplexContextBlock.php file core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockComplexContextBlock.php
MockComplexContextBlock::getTitle function core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockComplexContextBlock.php Returns the title of the block.
MockConfiguratorInterface interface core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Helper interface to test Container::get() with configurator.
MockConfiguratorInterface::configureService function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Configures a service.
MockContainerInjection class core/tests/Drupal/Tests/Core/Utility/CallableResolverTest.php Test class mocking container injection.
MockContainerInjection class core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php Mock for the injected service.
MockContainerInjection::$injected property core/tests/Drupal/Tests/Core/Utility/CallableResolverTest.php The value to be injected.
MockContainerInjection::$result property core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php The test value saved during construction.
MockContainerInjection::create function core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php Instantiates a new instance of this class.
MockContainerInjection::create function core/tests/Drupal/Tests/Core/Utility/CallableResolverTest.php Instantiates a new instance of this class.
MockContainerInjection::getResult function core/tests/Drupal/Tests/Core/Utility/CallableResolverTest.php
MockContainerInjection::getResult function core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php
MockContainerInjection::__construct function core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php
MockContainerInjection::__construct function core/tests/Drupal/Tests/Core/Utility/CallableResolverTest.php
MockController class core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php Mock for the controller.
MockController::getControllerWithRequestAndRouteMatch function core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php
MockController::getResult function core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php
MockControllerPsr7 class core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php Mock for the PSR-7 controller.
MockControllerPsr7::getControllerWithRequestAndRouteMatch function core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php
MockControllerPsr7::getResult function core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php
MockFileFinder class core/lib/Drupal/Component/Annotation/Reflection/MockFileFinder.php Defines a mock file finder that only returns a single filename.
MockFileFinder.php file core/lib/Drupal/Component/Annotation/Reflection/MockFileFinder.php
MockFileFinder::$filename property core/lib/Drupal/Component/Annotation/Reflection/MockFileFinder.php The only filename this finder ever returns.
MockFileFinder::create function core/lib/Drupal/Component/Annotation/Reflection/MockFileFinder.php Creates new mock file finder objects.
MockFileFinder::findFile function core/lib/Drupal/Component/Annotation/Reflection/MockFileFinder.php Finds a class.
MockFileFinderTest class core/tests/Drupal/Tests/Component/Annotation/MockFileFinderTest.php Tests Drupal\Component\Annotation\Reflection\MockFileFinder.
MockFileFinderTest.php file core/tests/Drupal/Tests/Component/Annotation/MockFileFinderTest.php
MockFileFinderTest::testFindFile function core/tests/Drupal/Tests/Component/Annotation/MockFileFinderTest.php @legacy-covers ::create
@legacy-covers ::findFile
MockFileTransfer class core/modules/system/tests/modules/system_test/src/MockFileTransfer.php Mock FileTransfer object to test the settings form functionality.
MockFileTransfer.php file core/modules/system/tests/modules/system_test/src/MockFileTransfer.php
MockFileTransfer::factory function core/modules/system/tests/modules/system_test/src/MockFileTransfer.php Returns a Drupal\system_test\MockFileTransfer object.
MockFileTransfer::getSettingsForm function core/modules/system/tests/modules/system_test/src/MockFileTransfer.php Returns a settings form with a text field to input a username.
MockFormBase class core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php Interface used in the mocking process of this test.
MockFormBase::hash_submit function core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php Function used in the mocking process of this test.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.