public function ToolbarLanguageSwitcherTest::testSingleLanguageProjectSetup in Admin Toolbar Language Switcher 8
Same name and namespace in other branches
- 8.1.x tests/src/Functional/ToolbarLanguageSwitcherTest.php \Drupal\Tests\toolbar_language_switcher\Functional\ToolbarLanguageSwitcherTest::testSingleLanguageProjectSetup()
- 2.0.x tests/src/Functional/ToolbarLanguageSwitcherTest.php \Drupal\Tests\toolbar_language_switcher\Functional\ToolbarLanguageSwitcherTest::testSingleLanguageProjectSetup()
Test single language project setup.
File
- tests/
src/ Functional/ ToolbarLanguageSwitcherTest.php, line 54
Class
- ToolbarLanguageSwitcherTest
- Base test class for toolbar_language_switcher tests.
Namespace
Drupal\Tests\toolbar_language_switcher\FunctionalCode
public function testSingleLanguageProjectSetup() {
$front_page = Url::fromRoute('<front>');
$assert_session = $this
->assertSession();
$this
->drupalLogin($this->user);
$this
->drupalGet($front_page);
$assert_session
->pageTextNotContains('Switch to English');
$assert_session
->pageTextNotContains('English');
}