Skip to content

Commit

Permalink
Adjust tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Scherer committed Apr 29, 2015
1 parent 818ab8f commit 2334e2c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/TestCase/View/Helper/PaginatorHelperTest.php
Expand Up @@ -439,7 +439,7 @@ public function testPagingLinksMissingModel()
$result = $this->Paginator->next('Next', ['model' => 'Missing']);
$expected = [
'li' => ['class' => 'next disabled'],
'a' => ['href' => ''],
'a' => ['href' => '', 'onclick' => 'return false;'],
'Next',
'/a',
'/li'
Expand All @@ -449,7 +449,7 @@ public function testPagingLinksMissingModel()
$result = $this->Paginator->prev('Prev', ['model' => 'Missing']);
$expected = [
'li' => ['class' => 'prev disabled'],
'a' => ['href' => ''],
'a' => ['href' => '', 'onclick' => 'return false;'],
'Prev',
'/a',
'/li'
Expand Down Expand Up @@ -884,7 +884,7 @@ public function testPrev()
$result = $this->Paginator->prev('<< Previous');
$expected = [
'li' => ['class' => 'prev disabled'],
'a' => ['href' => ''],
'a' => ['href' => '', 'onclick' => 'return false;'],
'&lt;&lt; Previous',
'/a',
'/li'
Expand All @@ -894,7 +894,7 @@ public function testPrev()
$result = $this->Paginator->prev('<< Previous', ['disabledTitle' => 'Prev']);
$expected = [
'li' => ['class' => 'prev disabled'],
'a' => ['href' => ''],
'a' => ['href' => '', 'onclick' => 'return false;'],
'Prev',
'/a',
'/li'
Expand Down Expand Up @@ -991,7 +991,7 @@ public function testNextDisabled()
$result = $this->Paginator->next('Next >>');
$expected = [
'li' => ['class' => 'next disabled'],
'a' => ['href' => ''],
'a' => ['href' => '', 'onclick' => 'return false;'],
'Next &gt;&gt;',
'/a',
'/li'
Expand All @@ -1001,7 +1001,7 @@ public function testNextDisabled()
$result = $this->Paginator->next('Next >>', ['disabledTitle' => 'Next']);
$expected = [
'li' => ['class' => 'next disabled'],
'a' => ['href' => ''],
'a' => ['href' => '', 'onclick' => 'return false;'],
'Next',
'/a',
'/li'
Expand Down Expand Up @@ -1052,13 +1052,13 @@ public function testNextAndPrevNonDefaultModel()
$result = $this->Paginator->prev('Prev', [
'model' => 'Client'
]);
$expected = '<li class="prev disabled"><a href="">Prev</a></li>';
$expected = '<li class="prev disabled"><a href="" onclick="return false;">Prev</a></li>';
$this->assertEquals($expected, $result);

$result = $this->Paginator->next('Next', [
'model' => 'Server'
]);
$expected = '<li class="next disabled"><a href="">Next</a></li>';
$expected = '<li class="next disabled"><a href="" onclick="return false;">Next</a></li>';
$this->assertEquals($expected, $result);

$result = $this->Paginator->prev('Prev', [
Expand Down

0 comments on commit 2334e2c

Please sign in to comment.