/**
* @internal
*
* @covers \Shopware\Core\Content\Flow\Exception\CustomTriggerByNameNotFoundException
*/
#[Package('business-ops')]
class CustomTriggerByNameNotFoundExceptionTest extends TestCase
{ public function testException(): void
{ $exception =
new CustomTriggerByNameNotFoundException('event_name_test'
);
static::
assertEquals('The provided event name event_name_test is invalid or uninstalled and no custom trigger could be found.',
$exception->
getMessage());
static::
assertEquals('ADMINISTRATION__CUSTOM_TRIGGER_BY_NAME_NOT_FOUND',
$exception->
getErrorCode());
static::
assertEquals(Response::HTTP_NOT_FOUND,
$exception->
getStatusCode());
}}