You are here

protected function ContentTranslationWorkflowsTest::assertNoSharedElements in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/content_translation/src/Tests/ContentTranslationWorkflowsTest.php \Drupal\content_translation\Tests\ContentTranslationWorkflowsTest::assertNoSharedElements()

Assert that the current page does not contain shared form elements.

1 call to ContentTranslationWorkflowsTest::assertNoSharedElements()
ContentTranslationWorkflowsTest::doTestWorkflows in core/modules/content_translation/src/Tests/ContentTranslationWorkflowsTest.php
Checks that workflows have the expected behaviors for the given user.

File

core/modules/content_translation/src/Tests/ContentTranslationWorkflowsTest.php, line 253
Contains \Drupal\content_translation\Tests\ContentTranslationWorkflowsTest.

Class

ContentTranslationWorkflowsTest
Tests the content translation workflows for the test entity.

Namespace

Drupal\content_translation\Tests

Code

protected function assertNoSharedElements() {
  $language_none = LanguageInterface::LANGCODE_NOT_SPECIFIED;
  return $this
    ->assertNoFieldByXPath("//input[@name='field_test_text[{$language_none}][0][value]']", NULL, 'Shared elements are not available on the translation form.');
}