mirror of
https://gh.wpcy.net/https://github.com/fairpm/aspirecloud.git
synced 2026-06-20 02:22:28 +08:00
10 lines
296 B
PHP
10 lines
296 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
it('should return 401 when an invalid auth token is present', function () {
|
|
$this
|
|
->get('/plugins/info/1.1?action=query_plugins', ['Authorization' => 'Bearer invalid-token'])
|
|
->assertUnauthorized();
|
|
});
|
|
|
|
// TODO: write test for real auth token
|