First take on unit tests.

Creates an event and compares the the input data with the database.

Ticket #28
This commit is contained in:
Tim Schumacher 2016-06-26 13:48:47 +02:00
parent fc138fb910
commit e44e7b6423
10 changed files with 1491 additions and 82 deletions

View file

@ -24,6 +24,7 @@ class AppKernel extends Kernel
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
$bundles[] = new Liip\FunctionalTestBundle\LiipFunctionalTestBundle();
}
return $bundles;

View file

@ -12,7 +12,7 @@ echo '> PHP is using the following php.ini file:'.PHP_EOL;
if ($iniPath) {
echo_style('green', ' '.$iniPath);
} else {
echo_style('warning', ' WARNING: No configuration file (php.ini) used by PHP!');
echo_style('yellow', ' WARNING: No configuration file (php.ini) used by PHP!');
}
echo PHP_EOL.PHP_EOL;

View file

@ -14,3 +14,13 @@ web_profiler:
swiftmailer:
disable_delivery: true
liip_functional_test: ~
doctrine:
dbal:
default_connection: default
connections:
default:
driver: pdo_sqlite
path: %kernel.cache_dir%/test.db

View file

@ -20,11 +20,9 @@
</testsuite>
</testsuites>
<!--
<php>
<server name="KERNEL_DIR" value="/path/to/your/app/" />
<server name="KERNEL_DIR" value="../app/" />
</php>
-->
<filter>
<whitelist>