Permalink
Browse files

MINOR Fixed hardcoded links from admin/page to admin/pages

  • Loading branch information...
1 parent 8a72b32 commit 1b3a634a56e7ea6cff635542a25db57c11f8619a @chillu chillu committed Apr 18, 2012
@@ -20,7 +20,7 @@
'_class': 'class-' + val.ssclass,
'action': function(obj) {
// TODO Fix hardcoding of link
- $('.cms-container').loadPanel('admin/page/add/?ParentID=' + id + '&Type=' + val.ssclass);
+ $('.cms-container').loadPanel('admin/pages/add/?ParentID=' + id + '&Type=' + val.ssclass);
}
};
}
@@ -31,7 +31,7 @@
'label': ss.i18n._t('Tree.EditPage'),
'action': function(obj) {
// TODO Fix hardcoding of link
- $('.cms-container').loadPanel('admin/page/add/show/' + obj.data('id'));
+ $('.cms-container').loadPanel('admin/pages/add/show/' + obj.data('id'));
}
}
};
@@ -41,7 +41,7 @@
'label': ss.i18n._t('Tree.AddSubPage'),
'action': function(obj) {
// TODO Fix hardcoding of link
- $('.cms-container').loadPanel('admin/page/add/?ParentID=' + obj.data('id'));
+ $('.cms-container').loadPanel('admin/pages/add/?ParentID=' + obj.data('id'));
},
'submenu': allowedChildren
};
@@ -62,7 +62,7 @@ function testPublish() {
//$this->assertRegexp('/Done: Published 4 pages/', $response->getBody())
/*
- $response = Director::test("admin/page/publishitems", array(
+ $response = Director::test("admin/pages/publishitems", array(
'ID' => ''
'Title' => ''
'action_publish' => 'Save and publish',
@@ -198,20 +198,20 @@ function testCreationOfTopLevelPage(){
// with insufficient permissions
$cmsUser->logIn();
- $this->get('admin/page/add');
+ $this->get('admin/pages/add');
$response = $this->post(
- 'admin/page/add/AddForm',
+ 'admin/pages/add/AddForm',
array('ParentID' => '0', 'ClassName' => 'Page', 'Locale' => 'en_US', 'action_doAdd' => 1)
);
// should redirect, which is a permission error
$this->assertEquals(403, $response->getStatusCode(), 'Add TopLevel page must fail for normal user');
// with correct permissions
$rootEditUser->logIn();
- $response = $this->get('admin/page/add');
+ $response = $this->get('admin/pages/add');
$response = $this->post(
- 'admin/page/add/AddForm',
+ 'admin/pages/add/AddForm',
array('ParentID' => '0', 'ClassName' => 'Page', 'Locale' => 'en_US', 'action_doAdd' => 1)
);
@@ -85,7 +85,7 @@ function testGetEditForm() {
* @todo check highlighting for comparing pages.
*/
function testVersionsForm() {
- $history = $this->get('admin/page/history/show/'. $this->page->ID);
+ $history = $this->get('admin/pages/history/show/'. $this->page->ID);
$form = $this->cssParser()->getBySelector("#Form_VersionsForm");
$this->assertEquals(1, count($form));
@@ -102,7 +102,7 @@ function testVersionsForm() {
}
function testVersionsFormTableContainsInformation() {
- $history = $this->get('admin/page/history/show/'. $this->page->ID);
+ $history = $this->get('admin/pages/history/show/'. $this->page->ID);
$form = $this->cssParser()->getBySelector("#Form_VersionsForm");
$rows = $form[0]->xpath("fieldset/table/tbody/tr");
@@ -127,7 +127,7 @@ function testVersionsFormTableContainsInformation() {
}
function testVersionsFormSelectsUnpublishedCheckbox() {
- $history = $this->get('admin/page/history/show/'. $this->page->ID);
+ $history = $this->get('admin/pages/history/show/'. $this->page->ID);
$checkbox = $this->cssParser()->getBySelector("#Form_VersionsForm #ShowUnpublished input");
$this->assertThat($checkbox[0], $this->logicalNot($this->isNull()));
@@ -136,7 +136,7 @@ function testVersionsFormSelectsUnpublishedCheckbox() {
$this->assertThat($checked, $this->logicalNot($this->stringContains('checked')));
// viewing an unpublished
- $history = $this->get('admin/page/history/show/'.$this->page->ID .'/'.$this->versionUnpublishedCheck);
+ $history = $this->get('admin/pages/history/show/'.$this->page->ID .'/'.$this->versionUnpublishedCheck);
$checkbox = $this->cssParser()->getBySelector("#Form_VersionsForm #ShowUnpublished input");
$this->assertThat($checkbox[0], $this->logicalNot($this->isNull()));
@@ -9,7 +9,7 @@ function testTitleFilter() {
$this->session()->inst_set('loggedInAs', $this->idFromFixture('Member', 'admin'));
$response = $this->get(
- 'admin/page/SearchForm/?' .
+ 'admin/pages/SearchForm/?' .
http_build_query(array(
'Title' => 'Page 10',
'FilterClass' => 'CMSSiteTreeFilter_Search',

0 comments on commit 1b3a634

Please sign in to comment.