mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-28 09:03:07 +03:00
19 lines
500 B
PHP
19 lines
500 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace ShlinkioTest\Shlink\Rest\Exception;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use Shlinkio\Shlink\Rest\Exception\VerifyAuthenticationException;
|
|
|
|
class VerifyAuthenticationExceptionTest extends TestCase
|
|
{
|
|
/** @test */
|
|
public function createsExpectedExceptionForInvalidApiKey(): void
|
|
{
|
|
$e = VerifyAuthenticationException::forInvalidApiKey();
|
|
|
|
$this->assertEquals('Provided API key does not exist or is invalid.', $e->getMessage());
|
|
}
|
|
}
|