function QueryFactoryTest::getConfigObject

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Config/Entity/Query/QueryFactoryTest.php \Drupal\Tests\Core\Config\Entity\Query\QueryFactoryTest::getConfigObject()
  2. 10 core/tests/Drupal/Tests/Core/Config/Entity/Query/QueryFactoryTest.php \Drupal\Tests\Core\Config\Entity\Query\QueryFactoryTest::getConfigObject()
  3. 9 core/tests/Drupal/Tests/Core/Config/Entity/Query/QueryFactoryTest.php \Drupal\Tests\Core\Config\Entity\Query\QueryFactoryTest::getConfigObject()
  4. 8.9.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 The test configuration object.

2 calls to QueryFactoryTest::getConfigObject()
QueryFactoryTest::testGetKeys in core/tests/Drupal/Tests/Core/Config/Entity/Query/QueryFactoryTest.php
Tests get keys.
QueryFactoryTest::testGetKeysWildCardEnd in core/tests/Drupal/Tests/Core/Config/Entity/Query/QueryFactoryTest.php
Tests get keys wild card end.

File

core/tests/Drupal/Tests/Core/Config/Entity/Query/QueryFactoryTest.php, line 146

Class

QueryFactoryTest
Tests Drupal\Core\Config\Entity\Query\QueryFactory.

Namespace

Drupal\Tests\Core\Config\Entity\Query

Code

protected function getConfigObject(string $name) : Config {
  return new Config($name, $this->createStub(StorageInterface::class), $this->createStub(EventDispatcherInterface::class), $this->createStub(TypedConfigManagerInterface::class));
}

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