Skip to content

Commit

Permalink
update test for LabelableEnum trait
Browse files Browse the repository at this point in the history
  • Loading branch information
danieletulone committed Jun 17, 2023
1 parent 028f943 commit f33711e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Feature/Traits/Enum/LabelableEnumTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Danieletulone\LaravelToolkit\Tests\TestCase;
use Danieletulone\LaravelToolkit\Traits\Enum\LabelableEnum;

enum ExampleEnum:int
enum ExampleEnum: int
{
use LabelableEnum;

Expand All @@ -19,7 +19,7 @@ class LabelableEnumTest extends TestCase
public function testToLabel()
{
$this->assertEquals(
'enum.'.ExampleEnum::class. '.0',
'enum.' . ExampleEnum::class . '.first',
ExampleEnum::FIRST->toLabel()
);
}
Expand All @@ -30,10 +30,10 @@ public function testToDotKey()
'first',
ExampleEnum::FIRST->toKey()
);

$this->assertEquals(
'with_space',
ExampleEnum::WITH_SPACE->toKey()
);
}
}
}

0 comments on commit f33711e

Please sign in to comment.