mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX More robust URL handling in CMSMainTest to avoid failing on custom /admin redirects
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@85513 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
ecb09780a4
commit
3648327b3c
@ -97,7 +97,7 @@ class CMSMainTest extends FunctionalTest {
|
||||
$page->delete();
|
||||
|
||||
$this->session()->inst_set('loggedInAs', $this->idFromFixture('Member', 'admin'));
|
||||
$response = $this->get('admin/getitem?ID=' . $pageID . '&ajax=1');
|
||||
$response = $this->get('admin/cms/getitem?ID=' . $pageID . '&ajax=1');
|
||||
|
||||
// Check that the 'delete from live' button exists as a simple way of checking that the correct page is returned.
|
||||
$this->assertRegExp('/<input[^>]+type="submit"[^>]+name="action_deletefromlive"/i', $response->getBody());
|
||||
|
Loading…
Reference in New Issue
Block a user