First functional test.
This commit is contained in:
parent
2d3ee3fde0
commit
3d2a1593cf
|
@ -28,7 +28,8 @@
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"sensio/generator-bundle": "~2.3",
|
"sensio/generator-bundle": "~2.3",
|
||||||
"doctrine/doctrine-fixtures-bundle": "^2.3"
|
"doctrine/doctrine-fixtures-bundle": "^2.3",
|
||||||
|
"phpunit/phpunit": "^5.7"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"post-root-package-install": [
|
"post-root-package-install": [
|
||||||
|
|
1201
composer.lock
generated
1201
composer.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -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']
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue