diff --git a/cake/tests/cases/libs/view/helpers/paginator.test.php b/cake/tests/cases/libs/view/helpers/paginator.test.php
index bbd81b53a..83a798420 100644
--- a/cake/tests/cases/libs/view/helpers/paginator.test.php
+++ b/cake/tests/cases/libs/view/helpers/paginator.test.php
@@ -116,9 +116,11 @@ class PaginatorHelperTest extends CakeTestCase {
$this->assertEqual($result, $expected);
$this->Paginator->params['paging']['Article']['prevPage'] = false;
- $result = $this->Paginator->prev('prev', array('update'=> 'theList', 'indicator'=> 'loading', 'url'=> array('controller' => 'posts')), null, array('class' => 'disabled', 'tag' => 'span'));
- $expected = 'prev';
- $this->assertEqual($result, $expected);
+ $result = $this->Paginator->prev('prev', array('update' => 'theList', 'indicator' => 'loading', 'url' => array('controller' => 'posts')), null, array('class' => 'disabled', 'tag' => 'span'));
+ $expected = array(
+ 'span' => array('class' => 'disabled'), 'prev', '/span'
+ );
+ $this->assertTags($result, $expected);
}
/**
* testSortLinks method
@@ -135,31 +137,56 @@ class PaginatorHelperTest extends CakeTestCase {
));
$this->Paginator->options(array('url' => array('param')));
$result = $this->Paginator->sort('title');
- $this->assertPattern('/\/accounts\/index\/param\/page:1\/sort:title\/direction:asc">Title<\/a>$/', $result);
+ $expected = array(
+ 'a' => array('href' => '/officespace/accounts/index/param/page:1/sort:title/direction:asc'),
+ 'Title',
+ '/a'
+ );
+ $this->assertTags($result, $expected);
$result = $this->Paginator->sort('date');
- $this->assertPattern('/\/accounts\/index\/param\/page:1\/sort:date\/direction:desc">Date<\/a>$/', $result);
+ $expected = array(
+ 'a' => array('href' => '/officespace/accounts/index/param/page:1/sort:date/direction:desc'),
+ 'Date',
+ '/a'
+ );
+ $this->assertTags($result, $expected);
$result = $this->Paginator->numbers(array('modulus'=> '2', 'url'=> array('controller'=>'projects', 'action'=>'sort'),'update'=>'list'));
$this->assertPattern('/\/projects\/sort\/page:2/', $result);
$this->assertPattern('/