shlink/module/Rest/test/Exception/VerifyAuthenticationExceptionTest.php
2023-02-09 20:42:18 +01:00

20 lines
533 B
PHP

<?php
declare(strict_types=1);
namespace ShlinkioTest\Shlink\Rest\Exception;
use PHPUnit\Framework\Attributes\Test;
use PHPUnit\Framework\TestCase;
use Shlinkio\Shlink\Rest\Exception\VerifyAuthenticationException;
class VerifyAuthenticationExceptionTest extends TestCase
{
#[Test]
public function createsExpectedExceptionForInvalidApiKey(): void
{
$e = VerifyAuthenticationException::forInvalidApiKey();
self::assertEquals('Provided API key does not exist or is invalid.', $e->getMessage());
}
}