Fixed code style.

This commit is contained in:
Jan Böhmer 2020-01-04 20:24:09 +01:00
parent 1aed1d1d26
commit 9a7223a301
142 changed files with 534 additions and 716 deletions

View file

@ -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'];
}
}
}