Skip to content

Commit

Permalink
fix(tests): do not use named arguments
Browse files Browse the repository at this point in the history
Remove named arguments to ensure compatibility with PHP 7.4
  • Loading branch information
stefangalescu committed Jun 20, 2022
1 parent d8c2b25 commit 11a4daf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/HeroiconTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function can_render_heroicon_using_solid_variant()
/** @test */
public function can_add_attributes_to_svg()
{
$render = $this->render(variant: 'outline', icon: 'menu', attrs: ['class' => 'w-6 h-6', 'title="Main menu"']);
$render = $this->render('outline', 'menu', ['class' => 'w-6 h-6', 'title="Main menu"']);

assertStringContainsString('class="w-6 h-6"', $render);
assertStringContainsString('title="Main menu"', $render);
Expand All @@ -60,7 +60,7 @@ public function can_add_attributes_to_svg()
/** @test */
public function can_add_dynamically_binded_attributes_to_svg()
{
$render = $this->render(variant: 'outline', icon: 'menu', attrs: ['x-bind:class' => "true ? 'w-6 h-6' : 'w-5 h-5'"]);
$render = $this->render('outline', 'menu', ['x-bind:class' => "true ? 'w-6 h-6' : 'w-5 h-5'"]);

assertStringContainsString('x-bind:class="true ? \'w-6 h-6\' : \'w-5 h-5\'"', $render);
}
Expand Down

0 comments on commit 11a4daf

Please sign in to comment.