function QueryFactoryTest::getConfigObject
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Config/Entity/Query/QueryFactoryTest.php \Drupal\Tests\Core\Config\Entity\Query\QueryFactoryTest::getConfigObject()
- 10 core/tests/Drupal/Tests/Core/Config/Entity/Query/QueryFactoryTest.php \Drupal\Tests\Core\Config\Entity\Query\QueryFactoryTest::getConfigObject()
- 11.x core/tests/Drupal/Tests/Core/Config/Entity/Query/QueryFactoryTest.php \Drupal\Tests\Core\Config\Entity\Query\QueryFactoryTest::getConfigObject()
Gets a test configuration object.
Parameters
string $name: The config name.
Return value
\Drupal\Core\Config\Config|\PHPUnit\Framework\MockObject\MockObject The test configuration object.
2 calls to QueryFactoryTest::getConfigObject()
- QueryFactoryTest::providerTestGetKeys in core/
tests/ Drupal/ Tests/ Core/ Config/ Entity/ Query/ QueryFactoryTest.php - QueryFactoryTest::testGetKeysWildCardEnd in core/
tests/ Drupal/ Tests/ Core/ Config/ Entity/ Query/ QueryFactoryTest.php - @covers ::getKeys @covers ::getValues
File
-
core/
tests/ Drupal/ Tests/ Core/ Config/ Entity/ Query/ QueryFactoryTest.php, line 128
Class
- QueryFactoryTest
- @coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Config%21Entity%21Query%21QueryFactory.php/class/QueryFactory/8.9.x" title="Provides a factory for creating entity query objects for the config backend." class="local">\Drupal\Core\Config\Entity\Query\QueryFactory</a> @group Config
Namespace
Drupal\Tests\Core\Config\Entity\QueryCode
protected function getConfigObject($name) {
$config = $this->getMockBuilder('Drupal\\Core\\Config\\Config')
->disableOriginalConstructor()
->setMethods([
'save',
'delete',
])
->getMock();
return $config->setName($name);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.