mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
Merge pull request #174 from creative-commoners/pulls/4/stop-using-depr
API Stop using deprecated API
This commit is contained in:
commit
a6c7030274
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user