|  | 
| 7 | 7 | it('gets locales from the directory', function () { | 
| 8 | 8 |     $driver = $this->getPhpDriver(); | 
| 9 | 9 | 
 | 
| 10 |  | -    expect($driver->getLocales())->toBe(['en', 'fr', 'fr_CA', 'package']); | 
|  | 10 | +    expect($driver->getLocales())->toEqualCanonicalizing(['en', 'fr', 'fr_CA', 'package']); | 
| 11 | 11 | }); | 
| 12 | 12 | 
 | 
| 13 | 13 | it('gets namespaces from the directory', function () { | 
| 14 | 14 |     $driver = $this->getPhpDriver(); | 
| 15 | 15 | 
 | 
| 16 |  | -    expect($driver->getNamespaces('fr'))->toBe([ | 
|  | 16 | +    expect($driver->getNamespaces('fr'))->toEqualCanonicalizing([ | 
| 17 | 17 |         'messages', | 
| 18 | 18 |         'users/account', | 
| 19 | 19 |     ]); | 
|  | 
| 49 | 49 |         driver: $this->getPhpDriver(), | 
| 50 | 50 |     ); | 
| 51 | 51 | 
 | 
| 52 |  | -    expect($translator->getLocales())->toBe(['fr']); | 
|  | 52 | +    expect($translator->getLocales())->toEqualCanonicalizing(['fr']); | 
| 53 | 53 | }); | 
| 54 | 54 | 
 | 
| 55 | 55 | it('gets locales from the directory when the config is null', function () { | 
|  | 
| 59 | 59 |         driver: $this->getPhpDriver(), | 
| 60 | 60 |     ); | 
| 61 | 61 | 
 | 
| 62 |  | -    expect($translator->getLocales())->toBe(['en', 'fr', 'fr_CA', 'package']); | 
|  | 62 | +    expect($translator->getLocales())->toEqualCanonicalizing(['en', 'fr', 'fr_CA', 'package']); | 
| 63 | 63 | }); | 
| 64 | 64 | 
 | 
| 65 | 65 | it('gets untranslated translations', function () { | 
|  | 
| 140 | 140 | 
 | 
| 141 | 141 |     $dead = $translator->getDeadTranslations('fr'); | 
| 142 | 142 | 
 | 
| 143 |  | -    expect($dead->dot()->keys()->toArray())->toBe([ | 
|  | 143 | +    expect($dead->dot()->keys()->toArray())->toEqualCanonicalizing([ | 
| 144 | 144 |         'messages.nested.title', | 
| 145 | 145 |         'messages.nested.array.0', | 
| 146 | 146 |         'messages.nested.array.1', | 
|  | 
0 commit comments