mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-12 01:54:41 +08:00
Improved AuthenticationMiddleware API tests
This commit is contained in:
@@ -5,7 +5,6 @@ declare(strict_types=1);
|
||||
namespace ShlinkioApiTest\Shlink\Rest\Action;
|
||||
|
||||
use GuzzleHttp\RequestOptions;
|
||||
use Shlinkio\Shlink\Rest\Util\RestUtils;
|
||||
use Shlinkio\Shlink\TestUtils\ApiTest\ApiTestCase;
|
||||
|
||||
class EditShortUrlActionTest extends ApiTestCase
|
||||
@@ -17,7 +16,7 @@ class EditShortUrlActionTest extends ApiTestCase
|
||||
['error' => $error] = $this->getJsonResponsePayload($resp);
|
||||
|
||||
$this->assertEquals(self::STATUS_NOT_FOUND, $resp->getStatusCode());
|
||||
$this->assertEquals(RestUtils::INVALID_SHORTCODE_ERROR, $error);
|
||||
$this->assertEquals('INVALID_SHORTCODE', $error);
|
||||
}
|
||||
|
||||
/** @test */
|
||||
@@ -29,6 +28,6 @@ class EditShortUrlActionTest extends ApiTestCase
|
||||
['error' => $error] = $this->getJsonResponsePayload($resp);
|
||||
|
||||
$this->assertEquals(self::STATUS_BAD_REQUEST, $resp->getStatusCode());
|
||||
$this->assertEquals(RestUtils::INVALID_ARGUMENT_ERROR, $error);
|
||||
$this->assertEquals('INVALID_ARGUMENT', $error);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user