diff --git a/tests/unit/General/CollectionsTest.php b/tests/unit/General/CollectionsTest.php index 8f84b35a1..b5d29bd24 100644 --- a/tests/unit/General/CollectionsTest.php +++ b/tests/unit/General/CollectionsTest.php @@ -19,8 +19,8 @@ class CollectionsTest extends TestCase public function testDuplicateRules() { - foreach ($this->collections as $collection) { - if (in_array('rules', $collection)) { + foreach ($this->collections as $key => $collection) { + if (array_key_exists('rules', $collection)) { foreach ($collection['rules'] as $check) { $occurences = 0; foreach ($collection['rules'] as $rule) {