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