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