mirror of
https://gh.wpcy.net/https://github.com/aspirepress/AspireCloud.git
synced 2026-07-17 11:37:03 +08:00
* fix(test): use pg_trgm if not exists * test: add test for /core/importers * test: add test for gp-icon and theme screenshot download * test: inline most test assertion functions into assertExactJson * test: add hot tags tests * test: add plugin updates tests * test: 100% coverage of download routes * test: 100% coverage of plugin update controller * test: 100% coverage of all api controllers * fix: make PassThroughController drop unexpected requests * refactor: rm special case for / in PassThroughController * test: auto-fake facades * test: test PassThroughController for 100% coverage on Controllers * test: drop auto-fakes because facades are made of hate * zap: rm unused build-container-images action * test: add test for AssetCacheHit event * deps: composer upgrade and bump
9 lines
271 B
PHP
9 lines
271 B
PHP
<?php
|
|
|
|
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
|