Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / content_translation / tests / src / Functional / ContentTranslationOperationsTest.php
index 2ec190d64b5d825b04d8ae626bc810e44fbe1a00..6eb3deb1c8e2f79641507e116c3450be681d36cf 100644 (file)
@@ -98,14 +98,14 @@ class ContentTranslationOperationsTest extends NodeTestBase {
         'access content' => TRUE,
       ]
     );
-    $node->setPublished(FALSE)->save();
+    $node->setUnpublished()->save();
     $this->drupalGet($node->urlInfo('drupal:content-translation-overview'));
     $this->assertResponse(403);
     $this->drupalLogout();
 
     // Ensure the 'Translate' local task does not show up anymore when disabling
     // translations for a content type.
-    $node->setPublished(TRUE)->save();
+    $node->setPublished()->save();
     user_role_change_permissions(
       Role::AUTHENTICATED_ID,
       [
@@ -136,7 +136,7 @@ class ContentTranslationOperationsTest extends NodeTestBase {
     $this->assertFalse(content_translation_translate_access($node)->isAllowed());
     $access_control_handler->resetCache();
 
-    $node->setPublished(TRUE);
+    $node->setPublished();
     $node->save();
     $this->assertTrue(content_translation_translate_access($node)->isAllowed());
     $access_control_handler->resetCache();