File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 11<?php
22
3- use Astrotomic \Translatable \Test \Model \Country ;
43use Astrotomic \Translatable \Test \Model \Food ;
4+ use Astrotomic \Translatable \Test \Model \Country ;
55use Astrotomic \Translatable \Test \Model \Vegetable ;
66
77final class ScopesTest extends TestsBase
@@ -213,11 +213,10 @@ public function test_orderByTranslation_sorts_by_key_desc()
213213 $ this ->assertSame (1 , $ result ->first ()->id );
214214 }
215215
216-
217216 public function test_orderByTranslation_sorts_by_key_asc_even_if_locale_is_missing ()
218217 {
219- Food::create (['en ' => ['name ' => 'Potatoes ' ],'fr ' => ['name ' => 'Pommes de Terre ' ]]);
220- Food::create (['en ' => ['name ' => 'Strawberries ' ],'fr ' => ['name ' => 'Fraises ' ]]);
218+ Food::create (['en ' => ['name ' => 'Potatoes ' ], 'fr ' => ['name ' => 'Pommes de Terre ' ]]);
219+ Food::create (['en ' => ['name ' => 'Strawberries ' ], 'fr ' => ['name ' => 'Fraises ' ]]);
221220 Food::create ([]);
222221
223222 $ orderInEnglish = Food::with ('translations ' )->orderByTranslation ('name ' )->get ();
You can’t perform that action at this time.
0 commit comments