You are here

public function TranslationLinkTest::testTranslationLink in Zircon Profile 8

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

Tests the content translation overview link field handler.

File

core/modules/content_translation/src/Tests/Views/TranslationLinkTest.php, line 68
Contains \Drupal\content_translation\Tests\Views\TranslationLinkTest.

Class

TranslationLinkTest
Tests the content translation overview link field handler.

Namespace

Drupal\content_translation\Tests\Views

Code

public function testTranslationLink() {
  $this
    ->drupalGet('test-entity-translations-link');
  $this
    ->assertLinkByHref('user/1/translations');
  $this
    ->assertNoLinkByHref('user/2/translations', 'The translations link is not present when content_translation_translate_access() is FALSE.');
}