X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Feditor%2Ftests%2Fsrc%2FFunctional%2FEditorPrivateFileReferenceFilterTest.php;fp=web%2Fcore%2Fmodules%2Feditor%2Ftests%2Fsrc%2FFunctional%2FEditorPrivateFileReferenceFilterTest.php;h=4880c85fc8e13c6a222777c2430a34ae556e87f7;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=816de5d6e4f7b19b0520e175e5f319f9287a4f6e;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website diff --git a/web/core/modules/editor/tests/src/Functional/EditorPrivateFileReferenceFilterTest.php b/web/core/modules/editor/tests/src/Functional/EditorPrivateFileReferenceFilterTest.php index 816de5d6e..4880c85fc 100644 --- a/web/core/modules/editor/tests/src/Functional/EditorPrivateFileReferenceFilterTest.php +++ b/web/core/modules/editor/tests/src/Functional/EditorPrivateFileReferenceFilterTest.php @@ -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();