From 1c5486e588447bc65222b30a76ac247df123ee32 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 21 Apr 2020 19:28:06 -0700 Subject: [PATCH] Updated test method for newer codeception from assertContains to assertStringContainsString --- tests/unit/AccessoryTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/AccessoryTest.php b/tests/unit/AccessoryTest.php index a9256d8cbf..8c7f0bbf11 100644 --- a/tests/unit/AccessoryTest.php +++ b/tests/unit/AccessoryTest.php @@ -47,7 +47,7 @@ class AccessoryTest extends BaseTest $this->assertFalse($a->isValid()); $errors = $a->getErrors(); foreach ($fields as $field => $fieldTitle) { - $this->assertContains("The ${fieldTitle} must be at least", $errors->get($field)[0]); + $this->assertStringContainsString("The ${fieldTitle} must be at least", $errors->get($field)[0]); } } @@ -64,7 +64,7 @@ class AccessoryTest extends BaseTest $accessory->save(); $this->assertFalse($accessory->isValid()); - $this->assertContains("The selected category id is invalid.", $accessory->getErrors()->get('category_id')[0]); + $this->assertStringContainsString("The selected category id is invalid.", $accessory->getErrors()->get('category_id')[0]); } public function testAnAccessoryBelongsToACompany()