File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 1818};
1919use yii2 \extensions \nestedsets \tests \support \stub \ExtendableNestedSetsBehavior ;
2020
21- use function array_key_exists ;
2221use function get_class ;
2322use 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 (
You can’t perform that action at this time.
0 commit comments