From 1ff4fc0cca8528d8d8214837f56b91a8c61b6d88 Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Mon, 30 May 2022 22:34:13 +0100 Subject: [PATCH] #15598 - Adjust test case --- tests/database/Mvc/Model/FindCest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/database/Mvc/Model/FindCest.php b/tests/database/Mvc/Model/FindCest.php index 36d18f38ad..5ca5fd3736 100644 --- a/tests/database/Mvc/Model/FindCest.php +++ b/tests/database/Mvc/Model/FindCest.php @@ -289,7 +289,7 @@ public function mvcModelFindPrivatePropertyWithRedisCache(DatabaseTester $I) ] ); - $I->assertSame(1, $original->count()); + $I->assertCount(1, $original); $record = $original[0]; $actual = $record->getIsActive(); @@ -345,7 +345,7 @@ public function mvcModelFindPrivatePropertyWithRedisCache(DatabaseTester $I) ] ); - $I->assertSame(0, $original->count()); + $I->assertCount(0, $original); /** * Finally get it back from the cache @@ -364,7 +364,7 @@ public function mvcModelFindPrivatePropertyWithRedisCache(DatabaseTester $I) ] ); - $I->assertSame(1, $cached->count()); + $I->assertCount(1, $cached); $record = $cached[0]; $actual = $record->getIsActive();