protected function EntityTranslationWorkflowsTest::assertNoSharedElements

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

1 call to EntityTranslationWorkflowsTest::assertNoSharedElements()
EntityTranslationWorkflowsTest::assertWorkflows in drupal/core/modules/translation_entity/lib/Drupal/translation_entity/Tests/EntityTranslationWorkflowsTest.php
Checks that workflows have the expected behaviors for the given user.

File

drupal/core/modules/translation_entity/lib/Drupal/translation_entity/Tests/EntityTranslationWorkflowsTest.php, line 183
Contains \Drupal\entity\Tests\EntityTranslationWorkflowsTest.

Class

EntityTranslationWorkflowsTest
Tests entity translation workflows.

Namespace

Drupal\translation_entity\Tests

Code

protected function assertNoSharedElements() {
  $language_none = Language::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.');
}