mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-13 11:54:32 +02:00
Fixed code style.
This commit is contained in:
parent
1aed1d1d26
commit
9a7223a301
142 changed files with 534 additions and 716 deletions
|
@ -21,12 +21,11 @@
|
|||
|
||||
namespace App\Tests;
|
||||
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
||||
/**
|
||||
* This test just ensures that different pages are available (do not throw an exception)
|
||||
* @package App\Tests
|
||||
* This test just ensures that different pages are available (do not throw an exception).
|
||||
*
|
||||
* @group DB
|
||||
* @group slow
|
||||
*/
|
||||
|
@ -35,10 +34,10 @@ class ApplicationAvailabilityFunctionalTest extends WebTestCase
|
|||
/**
|
||||
* @dataProvider urlProvider
|
||||
*/
|
||||
public function testPageIsSuccessful(string $url) : void
|
||||
public function testPageIsSuccessful(string $url): void
|
||||
{
|
||||
//We have localized routes
|
||||
$url = '/en' . $url;
|
||||
$url = '/en'.$url;
|
||||
|
||||
//Try to access pages with admin, because he should be able to view every page!
|
||||
$client = static::createClient([], [
|
||||
|
@ -48,10 +47,9 @@ class ApplicationAvailabilityFunctionalTest extends WebTestCase
|
|||
|
||||
$client->request('GET', $url);
|
||||
|
||||
$this->assertTrue($client->getResponse()->isSuccessful(), 'Request not successful. Status code is ' . $client->getResponse()->getStatusCode());
|
||||
$this->assertTrue($client->getResponse()->isSuccessful(), 'Request not successful. Status code is '.$client->getResponse()->getStatusCode());
|
||||
}
|
||||
|
||||
|
||||
public function urlProvider()
|
||||
{
|
||||
//Homepage
|
||||
|
@ -92,4 +90,4 @@ class ApplicationAvailabilityFunctionalTest extends WebTestCase
|
|||
yield ['/typeahead/builtInResources/search/DIP8'];
|
||||
yield ['/typeahead/tags/search/test'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue