Skip to content

Commit

Permalink
Fix non unique language codes
Browse files Browse the repository at this point in the history
  • Loading branch information
alecritson committed Mar 25, 2021
1 parent b30d2bb commit 111483d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Unit/Languages/Actions/FetchLanguagesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,15 @@ public function test_can_paginate_languages()

$languageA = factory(Language::class)->create([
'default' => false,
'code' => 'en-a',
]);
$languageB = factory(Language::class)->create([
'default' => true,
'code' => 'en-b',
]);
$languageC = factory(Language::class)->create([
'default' => false,
'code' => 'en-c',
]);

$languages = FetchLanguages::run();
Expand Down

0 comments on commit 111483d

Please sign in to comment.