mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Fixed (false positive) test in APIDocsAvailabilityTest
API Platform seems to have slightly changed the serialization process of errors and the requested HTML format was not available for error serialization
This commit is contained in:
parent
74d75c6e1f
commit
3da656c08b
1 changed files with 2 additions and 5 deletions
|
@ -44,10 +44,7 @@ class APIDocsAvailabilityTest extends WebTestCase
|
|||
self::assertResponseIsSuccessful();
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider urlProvider
|
||||
*/
|
||||
public function testDocForbidden(string $url): void
|
||||
public function testDocForbidden(): void
|
||||
{
|
||||
self::ensureKernelShutdown();
|
||||
$client = static::createClient();
|
||||
|
@ -55,7 +52,7 @@ class APIDocsAvailabilityTest extends WebTestCase
|
|||
->getRepository(User::class)->findOneBy(['name' => 'noread']);
|
||||
$client->loginUser($user);
|
||||
|
||||
$client->request('GET',$url);
|
||||
$client->request('GET','/api/docs.json');
|
||||
self::assertResponseStatusCodeSame(403);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue