Browse Source

Fix test expectations

Andy Dawson 8 years ago
parent
commit
0fbaf54d7c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/TestCase/View/Helper/PaginatorHelperTest.php

+ 2 - 2
tests/TestCase/View/Helper/PaginatorHelperTest.php

@@ -842,7 +842,7 @@ class PaginatorHelperTest extends TestCase
 
         $result = $this->Paginator->sort('name', null, ['url' => $options]);
         $expected = [
-            'a' => ['href' => '/members/posts/index?page=2&sort=name&direction=asc'],
+            'a' => ['href' => '/members/posts/index?sort=name&direction=asc'],
             'Name',
             '/a'
         ];
@@ -951,7 +951,7 @@ class PaginatorHelperTest extends TestCase
 
         $result = $this->Paginator->sort('name');
         $expected = [
-            'a' => ['href' => '/posts/index?article%5Bpage%5D=3&article%5Bsort%5D=name&article%5Bdirection%5D=asc'],
+            'a' => ['href' => '/posts/index?article%5Bsort%5D=name&article%5Bdirection%5D=asc'],
             'Name',
             '/a'
         ];