protected function QueryFactoryTest::getConfigObject in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 - @expectedException \LogicException @expectedExceptionMessage test_config_entity_type lookup key test.* ends with a wildcard this can not be used as a lookup
File
- core/
tests/ Drupal/ Tests/ Core/ Config/ Entity/ Query/ QueryFactoryTest.php, line 131 - Contains \Drupal\Tests\Core\Config\Entity\Query\QueryFactoryTest.
Class
- QueryFactoryTest
- @coversDefaultClass \Drupal\Core\Config\Entity\Query\QueryFactory @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);
}