Merge pull request #174 from creative-commoners/pulls/4/stop-using-depr

API Stop using deprecated API
This commit is contained in:
Sabina Talipova 2022-12-05 16:34:50 +13:00 committed by GitHub
commit a6c7030274
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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