Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / editor / tests / src / Functional / EditorPrivateFileReferenceFilterTest.php
index 816de5d6e4f7b19b0520e175e5f319f9287a4f6e..4880c85fc8e13c6a222777c2430a34ae556e87f7 100644 (file)
@@ -112,7 +112,7 @@ class EditorPrivateFileReferenceFilterTest extends BrowserTestBase {
 
     // When the published node is also unpublished, the image should also
     // become inaccessible to anonymous users.
-    $published_node->setPublished(FALSE)->save();
+    $published_node->setUnpublished()->save();
 
     $this->drupalGet($published_node->toUrl());
     $this->assertSession()->statusCodeEquals(403);
@@ -121,7 +121,7 @@ class EditorPrivateFileReferenceFilterTest extends BrowserTestBase {
 
     // Disallow anonymous users to view the entity, which then should also
     // disallow them to view the image.
-    $published_node->setPublished(TRUE)->save();
+    $published_node->setPublished()->save();
     Role::load(RoleInterface::ANONYMOUS_ID)
       ->revokePermission('access content')
       ->save();