Skip to content

Commit

Permalink
Update MenuTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bizley authored Oct 20, 2023
1 parent 9258369 commit f034274
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/framework/widgets/MenuTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public function testActiveItemClosureWithLogic()
'url' => 'test/logic',
'template' => 'label: {label}; url: {url}',
'active' => function ($item, $hasActiveChild, $isItemActive, $widget) {
return $widget->route==='test/logic';
return $widget->route === 'test/logic';
},
],
[
Expand Down Expand Up @@ -267,7 +267,7 @@ public function testActiveItemClosureWithLogicParent()
'url' => 'test/logic',
'template' => 'label: {label}; url: {url}',
'active' => function ($item, $hasActiveChild, $isItemActive, $widget) {
return $widget->route==='test/logic';
return $widget->route === 'test/logic';
},
],
[
Expand Down Expand Up @@ -328,7 +328,7 @@ public function testActiveItemClosureParentAnotherItem()
'url' => 'test/logic',
'template' => 'label: {label}; url: {url}',
'active' => function ($item, $hasActiveChild, $isItemActive, $widget) {
return $widget->route==='test/logic';
return $widget->route === 'test/logic';
},
],

Expand Down

0 comments on commit f034274

Please sign in to comment.