Skip to content

Commit

Permalink
Add return types to test methods
Browse files Browse the repository at this point in the history
  • Loading branch information
laravel-shift committed Mar 10, 2024
1 parent db37bcd commit 46a07a7
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/Feature/UriTranslatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class UriTranslatorTest extends TestCase
{
#[Test]
public function it_translates_every_segment_in_a_uri_to_the_current_locale()
public function it_translates_every_segment_in_a_uri_to_the_current_locale(): void
{
$this->setTranslations([
'nl' => [
Expand All @@ -28,7 +28,7 @@ public function it_translates_every_segment_in_a_uri_to_the_current_locale()
}

#[Test]
public function it_translates_every_segment_in_a_uri_to_the_given_locale()
public function it_translates_every_segment_in_a_uri_to_the_given_locale(): void
{
$this->setTranslations([
'nl' => [
Expand All @@ -42,7 +42,7 @@ public function it_translates_every_segment_in_a_uri_to_the_given_locale()
}

#[Test]
public function it_uses_the_original_values_if_a_translation_does_not_exist()
public function it_uses_the_original_values_if_a_translation_does_not_exist(): void
{
$this->setTranslations([
'nl' => [
Expand All @@ -56,7 +56,7 @@ public function it_uses_the_original_values_if_a_translation_does_not_exist()
}

#[Test]
public function it_ignores_trailing_slashes()
public function it_ignores_trailing_slashes(): void
{
$this->setTranslations([
'nl' => [
Expand All @@ -70,7 +70,7 @@ public function it_ignores_trailing_slashes()
}

#[Test]
public function it_skips_placeholders_in_a_uri()
public function it_skips_placeholders_in_a_uri(): void
{
$this->setTranslations([
'nl' => [
Expand All @@ -82,7 +82,7 @@ public function it_skips_placeholders_in_a_uri()
}

#[Test]
public function you_can_translate_a_full_uri()
public function you_can_translate_a_full_uri(): void
{
$this->setTranslations([
'nl' => [
Expand All @@ -96,7 +96,7 @@ public function you_can_translate_a_full_uri()
}

#[Test]
public function you_can_translate_a_full_uri_with_placeholder()
public function you_can_translate_a_full_uri_with_placeholder(): void
{
$this->setTranslations([
'nl' => [
Expand All @@ -110,7 +110,7 @@ public function you_can_translate_a_full_uri_with_placeholder()
}

#[Test]
public function you_can_specify_a_namespace()
public function you_can_specify_a_namespace(): void
{
$this->setTranslations([
'nl' => [
Expand All @@ -122,7 +122,7 @@ public function you_can_specify_a_namespace()
}

#[Test]
public function the_uri_macro_is_available_via_the_trans_helper()
public function the_uri_macro_is_available_via_the_trans_helper(): void
{
$this->setTranslations([
'nl' => [
Expand Down

0 comments on commit 46a07a7

Please sign in to comment.