diff --git a/core/modules/content_translation/src/Tests/ContentTestTranslationUITest.php b/core/modules/content_translation/src/Tests/ContentTestTranslationUITest.php index 9a11238..3569a45 100644 --- a/core/modules/content_translation/src/Tests/ContentTestTranslationUITest.php +++ b/core/modules/content_translation/src/Tests/ContentTestTranslationUITest.php @@ -35,8 +35,6 @@ protected function setUp() { parent::setUp(); } - - /** * Overrides \Drupal\content_translation\Tests\ContentTranslationUITestBase::getTranslatorPermission(). */ diff --git a/core/modules/content_translation/src/Tests/ContentTranslationOperationsTest.php b/core/modules/content_translation/src/Tests/ContentTranslationOperationsTest.php index 44ff2e6..86a726a 100644 --- a/core/modules/content_translation/src/Tests/ContentTranslationOperationsTest.php +++ b/core/modules/content_translation/src/Tests/ContentTranslationOperationsTest.php @@ -78,7 +78,7 @@ function testOperationTranslateLink() { $this->assertLinkByHref('node/' . $node->id() . '/translations'); // Ensure that an unintended misconfiguration of permissions does not open - // access to the translation form. @see https://www.drupal.org/node/2558905 + // access to the translation form, see https://www.drupal.org/node/2558905. $this->drupalLogout(); user_role_change_permissions( Role::AUTHENTICATED_ID, @@ -88,7 +88,7 @@ function testOperationTranslateLink() { ] ); $this->drupalLogin($this->baseUser1); - $this->drupalGet('node/' . $node->id() . '/translations'); + $this->drupalGet($node->urlInfo('drupal:content-translation-overview')); $this->assertResponse(403); // Ensure that the translation overview is also not accessible when the user @@ -101,7 +101,7 @@ function testOperationTranslateLink() { ] ); $node->setPublished(FALSE)->save(); - $this->drupalGet('node/' . $node->id() . '/translations'); + $this->drupalGet($node->urlInfo('drupal:content-translation-overview')); $this->assertResponse(403); }