Skip to content

Commit

Permalink
Remove pointless code.
Browse files Browse the repository at this point in the history
Add a missing call to parent::setUp() and remove code that it takes
care of.
  • Loading branch information
markstory committed Apr 2, 2013
1 parent 3a06dc5 commit 2d6ee3c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/Cake/Test/Case/View/Helper/PaginatorHelperTest.php
Expand Up @@ -40,6 +40,7 @@ class PaginatorHelperTest extends CakeTestCase {
* @return void * @return void
*/ */
public function setUp() { public function setUp() {
parent::setUp();
$controller = null; $controller = null;
$this->View = new View($controller); $this->View = new View($controller);
$this->Paginator = new PaginatorHelper($this->View); $this->Paginator = new PaginatorHelper($this->View);
Expand Down Expand Up @@ -584,8 +585,6 @@ public function testUrlGeneration() {
* @return void * @return void
*/ */
public function testUrlGenerationWithPrefixes() { public function testUrlGenerationWithPrefixes() {
$_back = Configure::read('Routing');

Configure::write('Routing.prefixes', array('members')); Configure::write('Routing.prefixes', array('members'));
Router::reload(); Router::reload();


Expand Down Expand Up @@ -642,8 +641,6 @@ public function testUrlGenerationWithPrefixes() {
$result = $this->Paginator->url($options); $result = $this->Paginator->url($options);
$expected = '/posts/index/page:2/sort:Article.name/direction:desc'; $expected = '/posts/index/page:2/sort:Article.name/direction:desc';
$this->assertEquals($expected, $result); $this->assertEquals($expected, $result);

Configure::write('Routing', $_back);
} }


/** /**
Expand Down

0 comments on commit 2d6ee3c

Please sign in to comment.