diff --git a/tests/Fixture/CounterCachePostFixture.php b/tests/Fixture/CounterCachePostFixture.php index 4829829021a..cc2fec0ab22 100644 --- a/tests/Fixture/CounterCachePostFixture.php +++ b/tests/Fixture/CounterCachePostFixture.php @@ -31,8 +31,8 @@ class CounterCachePostFixture extends TestFixture { ); public $records = array( - array('title' => 'Rock and Roll', 'user_id' => 66, 'published' => 0), - array('title' => 'Music', 'user_id' => 66, 'published' => 1), - array('title' => 'Food', 'user_id' => 301, 'published' => 1), + array('title' => 'Rock and Roll', 'user_id' => 1, 'published' => 0), + array('title' => 'Music', 'user_id' => 1, 'published' => 1), + array('title' => 'Food', 'user_id' => 2, 'published' => 1), ); } diff --git a/tests/Fixture/CounterCacheUserFixture.php b/tests/Fixture/CounterCacheUserFixture.php index ed8c72d2e2d..8c23a02920b 100644 --- a/tests/Fixture/CounterCacheUserFixture.php +++ b/tests/Fixture/CounterCacheUserFixture.php @@ -31,7 +31,7 @@ class CounterCacheUserFixture extends TestFixture { ); public $records = array( - array('id' => 66, 'name' => 'Alexander', 'post_count' => 2, 'posts_published' => 1), - array('id' => 301, 'name' => 'Steven', 'post_count' => 1, 'posts_published' => 1), + array('name' => 'Alexander', 'post_count' => 2, 'posts_published' => 1), + array('name' => 'Steven', 'post_count' => 1, 'posts_published' => 1), ); } diff --git a/tests/Fixture/MenuLinkTreeFixture.php b/tests/Fixture/MenuLinkTreeFixture.php index fd1c7777d8e..f187719e4c8 100644 --- a/tests/Fixture/MenuLinkTreeFixture.php +++ b/tests/Fixture/MenuLinkTreeFixture.php @@ -73,7 +73,6 @@ class MenuLinkTreeFixture extends TestFixture { */ public $records = array( array( - 'id' => '1', 'menu' => 'main-menu', 'lft' => '1', 'rght' => '10', @@ -82,7 +81,6 @@ class MenuLinkTreeFixture extends TestFixture { 'title' => 'Link 1', ), array( - 'id' => '2', 'menu' => 'main-menu', 'lft' => '2', 'rght' => '3', @@ -91,7 +89,6 @@ class MenuLinkTreeFixture extends TestFixture { 'title' => 'Link 2', ), array( - 'id' => '3', 'menu' => 'main-menu', 'lft' => '4', 'rght' => '9', @@ -100,7 +97,6 @@ class MenuLinkTreeFixture extends TestFixture { 'title' => 'Link 3', ), array( - 'id' => '4', 'menu' => 'main-menu', 'lft' => '5', 'rght' => '8', @@ -109,7 +105,6 @@ class MenuLinkTreeFixture extends TestFixture { 'title' => 'Link 4', ), array( - 'id' => '5', 'menu' => 'main-menu', 'lft' => '6', 'rght' => '7', @@ -118,7 +113,6 @@ class MenuLinkTreeFixture extends TestFixture { 'title' => 'Link 5', ), array( - 'id' => '6', 'menu' => 'main-menu', 'lft' => '11', 'rght' => '14', @@ -127,7 +121,6 @@ class MenuLinkTreeFixture extends TestFixture { 'title' => 'Link 6', ), array( - 'id' => '7', 'menu' => 'main-menu', 'lft' => '12', 'rght' => '13', @@ -136,7 +129,6 @@ class MenuLinkTreeFixture extends TestFixture { 'title' => 'Link 7', ), array( - 'id' => '8', 'menu' => 'main-menu', 'lft' => '15', 'rght' => '16', @@ -145,7 +137,6 @@ class MenuLinkTreeFixture extends TestFixture { 'title' => 'Link 8', ), array( - 'id' => '9', 'menu' => 'categories', 'lft' => '1', 'rght' => '10', @@ -154,7 +145,6 @@ class MenuLinkTreeFixture extends TestFixture { 'title' => 'electronics', ), array( - 'id' => '10', 'menu' => 'categories', 'lft' => '2', 'rght' => '9', @@ -163,7 +153,6 @@ class MenuLinkTreeFixture extends TestFixture { 'title' => 'televisions', ), array( - 'id' => '11', 'menu' => 'categories', 'lft' => '3', 'rght' => '4', @@ -172,7 +161,6 @@ class MenuLinkTreeFixture extends TestFixture { 'title' => 'tube', ), array( - 'id' => '12', 'menu' => 'categories', 'lft' => '5', 'rght' => '8', @@ -181,7 +169,6 @@ class MenuLinkTreeFixture extends TestFixture { 'title' => 'lcd', ), array( - 'id' => '13', 'menu' => 'categories', 'lft' => '6', 'rght' => '7', @@ -190,7 +177,6 @@ class MenuLinkTreeFixture extends TestFixture { 'title' => 'plasma', ), array( - 'id' => '14', 'menu' => 'categories', 'lft' => '11', 'rght' => '20', @@ -199,7 +185,6 @@ class MenuLinkTreeFixture extends TestFixture { 'title' => 'portable', ), array( - 'id' => '15', 'menu' => 'categories', 'lft' => '12', 'rght' => '15', @@ -208,7 +193,6 @@ class MenuLinkTreeFixture extends TestFixture { 'title' => 'mp3', ), array( - 'id' => '16', 'menu' => 'categories', 'lft' => '13', 'rght' => '14', @@ -217,7 +201,6 @@ class MenuLinkTreeFixture extends TestFixture { 'title' => 'flash', ), array( - 'id' => '17', 'menu' => 'categories', 'lft' => '16', 'rght' => '17', @@ -226,7 +209,6 @@ class MenuLinkTreeFixture extends TestFixture { 'title' => 'cd', ), array( - 'id' => '18', 'menu' => 'categories', 'lft' => '18', 'rght' => '19', diff --git a/tests/TestCase/Model/Behavior/CounterCacheBehaviorTest.php b/tests/TestCase/Model/Behavior/CounterCacheBehaviorTest.php index 6268cc89fa5..6b083e77d84 100644 --- a/tests/TestCase/Model/Behavior/CounterCacheBehaviorTest.php +++ b/tests/TestCase/Model/Behavior/CounterCacheBehaviorTest.php @@ -273,16 +273,16 @@ public function testMultiple() { protected function _getEntity() { return new Entity([ 'title' => 'Test 123', - 'user_id' => 66 + 'user_id' => 1 ]); } /** - * Returns entity for user 66 + * Returns entity for user 1 * * @return Entity */ protected function _getUser() { - return $this->user->find('all')->where(['id' => 66])->first(); + return $this->user->find('all')->where(['id' => 1])->first(); } }