point-tools/old/tests/Skobkin/PointToolsBundle/ApplicationAvailabilityFunctionalTest.php

29 lines
684 B
PHP

<?php
namespace Tests\Skobkin\PointToolsBundle;
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 [
'index_page' => ['/'],
'statistics' => ['/statistics'],
'last_events_page' => ['/events/last'],
'test_user_page' => ['/user/testuser']
];
}
}