Skip to content

Commit 32d923a

Browse files
committed
Apply fixes from StyleCI
1 parent 6f90737 commit 32d923a

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

tests/NestedSetsBehaviorTest.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
};
1919
use yii2\extensions\nestedsets\tests\support\stub\ExtendableNestedSetsBehavior;
2020

21-
use function array_key_exists;
2221
use function get_class;
2322
use function sprintf;
2423

@@ -2315,26 +2314,26 @@ public function testChildrenMethodRequiresOrderByForCorrectTreeTraversal(): void
23152314
$childrenList,
23162315
'Root should have exactly \'3\' children.',
23172316
);
2318-
self::assertTrue(
2319-
array_key_exists(0, $childrenList),
2317+
self::assertArrayHasKey(
2318+
0, $childrenList,
23202319
'First child should exist in the children list.',
23212320
);
23222321
self::assertEquals(
23232322
'Child B',
23242323
$childrenList[0]->getAttribute('name'),
23252324
'First child should be Child B (\'lft=2\')',
23262325
);
2327-
self::assertTrue(
2328-
array_key_exists(1, $childrenList),
2326+
self::assertArrayHasKey(
2327+
1, $childrenList,
23292328
'Second child should exist in the children list.',
23302329
);
23312330
self::assertEquals(
23322331
'Child C',
23332332
$childrenList[1]->getAttribute('name'),
23342333
'Second child should be Child C (\'lft=4\')',
23352334
);
2336-
self::assertTrue(
2337-
array_key_exists(2, $childrenList),
2335+
self::assertArrayHasKey(
2336+
2, $childrenList,
23382337
'Third child should exist in the children list.',
23392338
);
23402339
self::assertEquals(

0 commit comments

Comments
 (0)