class PromotionCodeNotFoundExceptionTest extends TestCase
{ /**
* This test verifies that our provided code is correctly
* visible in the resulting exception message.
*
* @group promotions
*/
public function testCodeInMessage(): void
{ $exception =
new PromotionCodeNotFoundException('MY-CODE-123'
);
static::
assertEquals('Promotion Code "MY-CODE-123" has not been found!',
$exception->
getMessage());
} /**
* This test verifies that our error code is correct
*
* @group promotions
*/
public function testErrorCode(): void
{