Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove pointless code.

Add a missing call to parent::setUp() and remove code that it takes
care of.
  • Loading branch information...
commit 2d6ee3cdb1c42704bc15a1c08e6fbbab5c08507d 1 parent 3a06dc5
@markstory markstory authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 lib/Cake/Test/Case/View/Helper/PaginatorHelperTest.php
View
5 lib/Cake/Test/Case/View/Helper/PaginatorHelperTest.php
@@ -40,6 +40,7 @@ class PaginatorHelperTest extends CakeTestCase {
* @return void
*/
public function setUp() {
+ parent::setUp();
$controller = null;
$this->View = new View($controller);
$this->Paginator = new PaginatorHelper($this->View);
@@ -584,8 +585,6 @@ public function testUrlGeneration() {
* @return void
*/
public function testUrlGenerationWithPrefixes() {
- $_back = Configure::read('Routing');
-
Configure::write('Routing.prefixes', array('members'));
Router::reload();
@@ -642,8 +641,6 @@ public function testUrlGenerationWithPrefixes() {
$result = $this->Paginator->url($options);
$expected = '/posts/index/page:2/sort:Article.name/direction:desc';
$this->assertEquals($expected, $result);
-
- Configure::write('Routing', $_back);
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.