Skip to content

Commit

Permalink
Updating localization tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Sik committed Oct 23, 2015
1 parent ef2a89c commit 0ad5f83
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions api/tests/integration/EntityTest.php
Expand Up @@ -759,7 +759,8 @@ public function testPutOneLocalization()
// Create an entity
$entity = factory(App\Models\TestEntity::class)->create();

$region = array_pop(array_pluck(config('regions.supported'), 'code'));
$supportedRegions = array_pluck(config('regions.supported'), 'code');
$region = array_pop($supportedRegions);

$localization = [
'varchar' => 'foobar',
Expand Down Expand Up @@ -823,7 +824,8 @@ public function testGetOneLocalization()
// Create an entity
$entity = factory(App\Models\TestEntity::class)->create();

$region = array_pop(array_pluck(config('regions.supported'), 'code'));
$supportedRegions = array_pluck(config('regions.supported'), 'code');
$region = array_pop($supportedRegions);

$localization = [
'varchar' => 'barfoo',
Expand Down Expand Up @@ -899,7 +901,8 @@ public function testShouldGetLocalizedContent()
// Create an entity
$entity = factory(App\Models\TestEntity::class)->create();

$region = array_pop(array_pluck(config('regions.supported'), 'code'));
$supportedRegions = array_pluck(config('regions.supported'), 'code');
$region = array_pop($supportedRegions);

$localization = [
'varchar' => 'foofoo',
Expand Down

0 comments on commit 0ad5f83

Please sign in to comment.