mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Remove pointless code.
Add a missing call to parent::setUp() and remove code that it takes care of.
This commit is contained in:
parent
3a06dc5e1c
commit
2d6ee3cdb1
1 changed files with 1 additions and 4 deletions
|
@ -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 @@ class PaginatorHelperTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
public function testUrlGenerationWithPrefixes() {
|
||||
$_back = Configure::read('Routing');
|
||||
|
||||
Configure::write('Routing.prefixes', array('members'));
|
||||
Router::reload();
|
||||
|
||||
|
@ -642,8 +641,6 @@ class PaginatorHelperTest extends CakeTestCase {
|
|||
$result = $this->Paginator->url($options);
|
||||
$expected = '/posts/index/page:2/sort:Article.name/direction:desc';
|
||||
$this->assertEquals($expected, $result);
|
||||
|
||||
Configure::write('Routing', $_back);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue