API Stop using deprecated API

This commit is contained in:
Steve Boyd 2022-11-24 13:04:34 +13:00
parent 7eb81fd449
commit 6f18e92169

View File

@ -55,7 +55,7 @@ class SiteTreeContentReviewTest extends ContentReviewBaseTest
$page->write(); $page->write();
$this->assertTrue($page->canPublish()); $this->assertTrue($page->canPublish());
$this->assertTrue($page->doPublish()); $this->assertTrue($page->publishRecursive());
$this->assertEquals($page->OwnerNames, "Test Editor", "Test Editor should be the owner"); $this->assertEquals($page->OwnerNames, "Test Editor", "Test Editor should be the owner");
/** @var Page|SiteTreeContentReview $page */ /** @var Page|SiteTreeContentReview $page */
@ -119,7 +119,7 @@ class SiteTreeContentReviewTest extends ContentReviewBaseTest
$page->ReviewPeriodDays = 10; $page->ReviewPeriodDays = 10;
$page->write(); $page->write();
$this->assertTrue($page->doPublish()); $this->assertTrue($page->publishRecursive());
$this->assertEquals(null, $page->NextReviewDate); $this->assertEquals(null, $page->NextReviewDate);
} }