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:
Ingo Schommer 2009-09-01 06:35:29 +00:00
parent ecb09780a4
commit 3648327b3c

View File

@ -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());