First functional test.

This commit is contained in:
Alexey Skobkin 2016-12-11 08:26:30 +03:00
parent 2d3ee3fde0
commit 3d2a1593cf
3 changed files with 1232 additions and 2 deletions

View file

@ -28,7 +28,8 @@
},
"require-dev": {
"sensio/generator-bundle": "~2.3",
"doctrine/doctrine-fixtures-bundle": "^2.3"
"doctrine/doctrine-fixtures-bundle": "^2.3",
"phpunit/phpunit": "^5.7"
},
"scripts": {
"post-root-package-install": [

1201
composer.lock generated

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,30 @@
<?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']
];
}
}