public function LingotekConfigOverridesTest::testDefaultProjectOverride in Lingotek Translation 3.2.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/LingotekConfigOverridesTest.php \Drupal\Tests\lingotek\Functional\LingotekConfigOverridesTest::testDefaultProjectOverride()
- 4.0.x tests/src/Functional/LingotekConfigOverridesTest.php \Drupal\Tests\lingotek\Functional\LingotekConfigOverridesTest::testDefaultProjectOverride()
- 3.0.x tests/src/Functional/LingotekConfigOverridesTest.php \Drupal\Tests\lingotek\Functional\LingotekConfigOverridesTest::testDefaultProjectOverride()
- 3.1.x tests/src/Functional/LingotekConfigOverridesTest.php \Drupal\Tests\lingotek\Functional\LingotekConfigOverridesTest::testDefaultProjectOverride()
- 3.3.x tests/src/Functional/LingotekConfigOverridesTest.php \Drupal\Tests\lingotek\Functional\LingotekConfigOverridesTest::testDefaultProjectOverride()
- 3.4.x tests/src/Functional/LingotekConfigOverridesTest.php \Drupal\Tests\lingotek\Functional\LingotekConfigOverridesTest::testDefaultProjectOverride()
- 3.5.x tests/src/Functional/LingotekConfigOverridesTest.php \Drupal\Tests\lingotek\Functional\LingotekConfigOverridesTest::testDefaultProjectOverride()
- 3.6.x tests/src/Functional/LingotekConfigOverridesTest.php \Drupal\Tests\lingotek\Functional\LingotekConfigOverridesTest::testDefaultProjectOverride()
- 3.7.x tests/src/Functional/LingotekConfigOverridesTest.php \Drupal\Tests\lingotek\Functional\LingotekConfigOverridesTest::testDefaultProjectOverride()
- 3.8.x tests/src/Functional/LingotekConfigOverridesTest.php \Drupal\Tests\lingotek\Functional\LingotekConfigOverridesTest::testDefaultProjectOverride()
File
- tests/
src/ Functional/ LingotekConfigOverridesTest.php, line 27
Class
- LingotekConfigOverridesTest
- Tests config overrides in settings.php are possible .
Namespace
Drupal\Tests\lingotek\FunctionalCode
public function testDefaultProjectOverride() {
$GLOBALS['config']['lingotek.settings']['default']['project'] = 'abc';
// Container was not rebuilt yet.
$project = \Drupal::service('lingotek')
->get('default.project');
$this
->assertIdentical('test_project', $project, 'Default project could be overridden by settings.php');
// Editing settings.php forces us to rebuild the container.
$GLOBALS['config']['lingotek.settings']['default']['project'] = 'def';
$this
->rebuildContainer();
$project = \Drupal::service('lingotek')
->get('default.project');
$this
->assertIdentical('def', $project, 'Default project could be overridden by settings.php');
}