Skip to content

Commit

Permalink
format was annoying
Browse files Browse the repository at this point in the history
  • Loading branch information
MortenDHansen committed Mar 2, 2022
1 parent 80c5ff1 commit 23d57d0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/Feature/DatabaseTranslationsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,12 @@ public function commandRebuildsCache()
DatabaseLangItem::where('locale', 'de')->where('key', 'tomato')->update(['value' => 'schnitzel']);
$this->assertTrue(\Cache::has(DbTrans::getCacheKey('salad', 'de')));
$this->assertNull(\Cache::get(DbTrans::getCacheKey('salad', 'de'))['tomato']);
$this->assertDatabaseHas('database_lang_items',
['group' => 'salad', 'locale' => 'de', 'key' => 'tomato', 'value' => 'schnitzel']);
$this->assertDatabaseHas('database_lang_items', [
'group' => 'salad',
'locale' => 'de',
'key' => 'tomato',
'value' => 'schnitzel'
]);

// rebuild cache - now cache should be aligned with db
$this->artisan('dbtrans:cache-rebuild');
Expand Down

0 comments on commit 23d57d0

Please sign in to comment.