aspirecloud/tests/Feature/API/WpOrg/ApiAuthenticationTest.php
2025-10-25 13:15:51 -06:00

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