code quality improvements + add boolean in a ctive link helper to check if url is active without displaying link

This commit is contained in:
2026-03-17 02:01:07 -07:00
parent 4f996eb7d2
commit 924734b8a4
5 changed files with 22 additions and 15 deletions

View File

@@ -108,7 +108,7 @@ class ActiveLinkHelperTest extends TestCase {
// matches specific controller action
$specificActionResult = $helper->link('goto', ['prefix' => 'Admin', 'controller' => 'Users', 'action' => 'index'], [
'target' => ['controller' => 'Events', 'action' => 'index'],
'current' => ['prefix' => 'Admin', 'controller' => 'Users', 'action' => 'index'],
'current' => ['prefix' => 'Admin', 'controller' => 'Users', 'action' => 'index'],
'activeClass' => 'awesome-active-class',
'class' => 'link-class',
]);