function ContentTranslationWorkflowsTest::assertNoSharedElements
Same name and namespace in other branches
- 11.x core/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php \Drupal\Tests\content_translation\Functional\ContentTranslationWorkflowsTest::assertNoSharedElements()
Assert that the current page does not contain shared form elements.
@internal
File
-
core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationWorkflowsTest.php, line 423
Class
- ContentTranslationWorkflowsTest
- Tests the content translation workflows for the test entity.
Namespace
Drupal\Tests\content_translation\FunctionalCode
protected function assertNoSharedElements() : void {
$language_none = LanguageInterface::LANGCODE_NOT_SPECIFIED;
$this->assertSession()
->fieldNotExists("field_test_text[{$language_none}][0][value]");
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.