mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
FIX Remove specific page edit URL from tests to ensure multi SS version compatibility
This commit is contained in:
parent
7bae7e2c34
commit
12198e21e6
@ -67,7 +67,7 @@ class ContentReviewCMSPageEditControllerTest extends ContentReviewBaseTest
|
|||||||
);
|
);
|
||||||
|
|
||||||
$this->get('admin/pages/edit/show/' . $page->ID);
|
$this->get('admin/pages/edit/show/' . $page->ID);
|
||||||
$response = $this->post("admin/pages/edit/EditForm", $data);
|
$response = $this->post(singleton('CMSPageEditController')->getEditForm($page->ID)->FormAction(), $data);
|
||||||
|
|
||||||
$this->assertEquals("OK", $response->getStatusDescription());
|
$this->assertEquals("OK", $response->getStatusDescription());
|
||||||
$this->assertEquals(200, $response->getStatusCode());
|
$this->assertEquals(200, $response->getStatusCode());
|
||||||
@ -90,8 +90,8 @@ class ContentReviewCMSPageEditControllerTest extends ContentReviewBaseTest
|
|||||||
);
|
);
|
||||||
|
|
||||||
$this->get('admin/pages/edit/show/' . $page->ID);
|
$this->get('admin/pages/edit/show/' . $page->ID);
|
||||||
$response = $this->post("admin/pages/edit/EditForm", $data);
|
$response = $this->post(singleton('CMSPageEditController')->getEditForm($page->ID)->FormAction(), $data);
|
||||||
|
|
||||||
$this->assertEquals("OK", $response->getStatusDescription());
|
$this->assertEquals("OK", $response->getStatusDescription());
|
||||||
$this->assertEquals(200, $response->getStatusCode());
|
$this->assertEquals(200, $response->getStatusCode());
|
||||||
$this->assertEquals(1, $page->ReviewLogs()->count());
|
$this->assertEquals(1, $page->ReviewLogs()->count());
|
||||||
|
Loading…
Reference in New Issue
Block a user