protected function Redirect404TestBase::assertNoLanguageInTableBody in Redirect 8
Passes if the language of the 404 path is NOT found on the loaded page.
Because assertText() checks also in the Language select options, this specific assertion in the redirect 404 table body is needed.
Parameters
string $language: The language to assert in the redirect 404 table body.
1 call to Redirect404TestBase::assertNoLanguageInTableBody()
- Fix404RedirectUILanguageTest::testFix404RedirectList in modules/
redirect_404/ tests/ src/ Functional/ Fix404RedirectUILanguageTest.php - Tests the fix 404 pages workflow with language and content translation.
File
- modules/
redirect_404/ tests/ src/ Functional/ Redirect404TestBase.php, line 85
Class
- Redirect404TestBase
- This class provides methods specifically for testing redirect 404 paths.
Namespace
Drupal\Tests\redirect_404\FunctionalCode
protected function assertNoLanguageInTableBody($language) {
$this
->assertSession()
->elementNotContains('css', 'table tbody', $language);
}