Removing test that is no longer relevant due to changes in Router.

This commit is contained in:
Mark Story 2010-04-08 22:40:45 -04:00
parent 4d780ee1f3
commit 9d3a2c61d4

View file

@ -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
*