2016-12-11 05:26:30 +00:00
|
|
|
<?php
|
|
|
|
|
2017-01-09 19:14:08 +00:00
|
|
|
namespace Tests\Skobkin\PointToolsBundle;
|
2016-12-11 05:26:30 +00:00
|
|
|
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
|
|
|
|
|
|
|
class ApplicationAvailabilityFunctionalTest extends WebTestCase
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @dataProvider urlProvider
|
|
|
|
*/
|
|
|
|
public function testPageIsSuccessful($url)
|
|
|
|
{
|
|
|
|
$client = self::createClient();
|
|
|
|
$client->request('GET', $url);
|
|
|
|
|
|
|
|
$this->assertTrue($client->getResponse()->isSuccessful());
|
|
|
|
}
|
|
|
|
|
|
|
|
public function urlProvider()
|
|
|
|
{
|
|
|
|
return [
|
2016-12-11 19:07:01 +00:00
|
|
|
'index_page' => ['/'],
|
2017-01-11 18:20:33 +00:00
|
|
|
'statistics' => ['/statistics'],
|
2016-12-11 19:07:01 +00:00
|
|
|
'last_events_page' => ['/events/last'],
|
|
|
|
'test_user_page' => ['/user/testuser']
|
2016-12-11 05:26:30 +00:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|