point-tools/src/Skobkin/Bundle/PointToolsBundle/Tests/ApplicationAvailabilityFunctionalTest.php

30 lines
689 B
PHP
Raw Normal View History

2016-12-11 05:26:30 +00:00
<?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 [
'index_page' => ['/'],
'top_page' => ['/users/top'],
'last_events_page' => ['/events/last'],
'test_user_page' => ['/user/testuser']
2016-12-11 05:26:30 +00:00
];
}
}