30 lines
617 B
PHP
30 lines
617 B
PHP
|
<?php
|
||
|
|
||
|
namespace Skobkin\Bundle\PointToolsBundle\Tests;
|
||
|
|
||
|
|
||
|
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 [
|
||
|
['/'],
|
||
|
['/users/top'],
|
||
|
['/events/last'],
|
||
|
['/user/testuser']
|
||
|
];
|
||
|
}
|
||
|
}
|