X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Fcontent_translation%2Ftests%2Fsrc%2FFunctional%2FContentTranslationOperationsTest.php;fp=web%2Fcore%2Fmodules%2Fcontent_translation%2Ftests%2Fsrc%2FFunctional%2FContentTranslationOperationsTest.php;h=6eb3deb1c8e2f79641507e116c3450be681d36cf;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=2ec190d64b5d825b04d8ae626bc810e44fbe1a00;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website diff --git a/web/core/modules/content_translation/tests/src/Functional/ContentTranslationOperationsTest.php b/web/core/modules/content_translation/tests/src/Functional/ContentTranslationOperationsTest.php index 2ec190d64..6eb3deb1c 100644 --- a/web/core/modules/content_translation/tests/src/Functional/ContentTranslationOperationsTest.php +++ b/web/core/modules/content_translation/tests/src/Functional/ContentTranslationOperationsTest.php @@ -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();