/**
* @internal
*
* @covers \Shopware\Core\System\Locale\LocaleException
*/
#[Package('buyers-experience')]
class LocaleExceptionTest extends TestCase
{ public function testLocaleDoesNotExist(): void
{ $e = LocaleException::
localeDoesNotExists('myCustomLocale'
);
static::
assertSame(Response::HTTP_NOT_FOUND,
$e->
getStatusCode());
static::
assertSame(LocaleException::LOCALE_DOES_NOT_EXISTS_EXCEPTION,
$e->
getErrorCode());
} public function testLanguageNotFound(): void
{ $e = LocaleException::
languageNotFound('foo'
);
static::
assertSame(Response::HTTP_PRECONDITION_FAILED,
$e->
getStatusCode());
static::
assertSame(LocaleException::LANGUAGE_NOT_FOUND,
$e->
getErrorCode());
}