mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-10 17:29:34 +01:00
Fixed some tests.
This commit is contained in:
@@ -27,6 +27,8 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
/**
|
||||
* This test just ensures that different pages are available (do not throw an exception)
|
||||
* @package App\Tests
|
||||
* @group DB
|
||||
* @group slow
|
||||
*/
|
||||
class ApplicationAvailabilityFunctionalTest extends WebTestCase
|
||||
{
|
||||
@@ -46,14 +48,14 @@ class ApplicationAvailabilityFunctionalTest extends WebTestCase
|
||||
|
||||
$client->request('GET', $url);
|
||||
|
||||
$this->assertTrue($client->getResponse()->isSuccessful());
|
||||
$this->assertTrue($client->getResponse()->isSuccessful(), 'Request not successful. Status code is ' . $client->getResponse()->getStatusCode());
|
||||
}
|
||||
|
||||
|
||||
public function urlProvider()
|
||||
{
|
||||
//Homepage
|
||||
yield ['/'];
|
||||
//yield ['/'];
|
||||
//User related things
|
||||
yield ['/user/settings'];
|
||||
yield ['/user/info'];
|
||||
|
||||
Reference in New Issue
Block a user