mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Removing test that is no longer relevant due to changes in Router.
This commit is contained in:
parent
4d780ee1f3
commit
9d3a2c61d4
1 changed files with 0 additions and 23 deletions
|
@ -218,29 +218,6 @@ class PaginatorHelperTest extends CakeTestCase {
|
|||
$this->assertPattern('/\/accounts\/index\/param\/page:1\/sort:title\/direction:desc" class="asc">Title<\/a>$/', $result);
|
||||
}
|
||||
|
||||
/**
|
||||
* test sort() works with plugin shortcut routes.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function testSortWithPluginShortcuts() {
|
||||
Router::reload();
|
||||
Router::parse('/');
|
||||
Router::setRequestInfo(array(
|
||||
array('plugin' => 'test_plugin', 'controller' => 'test_plugin', 'action' => 'something', 'pass' => array(), 'form' => array(), 'url' => array('url' => 'test_plugin/something')),
|
||||
array('base' => '/', 'here' => '/test_plugin/', 'webroot' => '/')
|
||||
));
|
||||
|
||||
$result = $this->Paginator->sort('title');
|
||||
$expected = array(
|
||||
'a' => array('href' => '/test_plugin/something/page:1/sort:title/direction:asc'),
|
||||
'Title',
|
||||
'/a'
|
||||
);
|
||||
$this->assertTags($result, $expected);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* testSortLinksUsingDirectionOption method
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue