Phpunit is working

This commit is contained in:
Marc Ducobu 2014-11-07 23:17:54 +01:00
parent f1b66bb6dc
commit c7e4388645
8 changed files with 37 additions and 21 deletions

View File

@ -7,6 +7,7 @@ use Symfony\Component\Config\FileLocator;
use Symfony\Component\HttpKernel\DependencyInjection\Extension; use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Loader; use Symfony\Component\DependencyInjection\Loader;
use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface; use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
use Chill\MainBundle\DependencyInjection\MissingBundleException;
/** /**
* This is the class that loads and manages your bundle configuration * This is the class that loads and manages your bundle configuration

View File

@ -1,17 +0,0 @@
<?php
namespace Chill\ReportBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class DefaultControllerTest extends WebTestCase
{
public function testIndex()
{
$client = static::createClient();
$crawler = $client->request('GET', '/hello/Fabien');
$this->assertTrue($crawler->filter('html:contains("Hello Fabien")')->count() > 0);
}
}

View File

@ -11,6 +11,8 @@ class AppKernel extends Kernel
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Chill\ReportBundle\ChillReportBundle(), new Chill\ReportBundle\ChillReportBundle(),
new Symfony\Bundle\TwigBundle\TwigBundle(), new Symfony\Bundle\TwigBundle\TwigBundle(),
new Chill\CustomFieldsBundle\ChillCustomFieldsBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle()
); );
} }

View File

@ -1,4 +1,6 @@
# config/config.yml imports:
- { resource: parameters.yml }
framework: framework:
secret: Not very secret secret: Not very secret
router: { resource: "%kernel.root_dir%/config/routing.yml" } router: { resource: "%kernel.root_dir%/config/routing.yml" }
@ -9,4 +11,17 @@ framework:
translator: { fallback: fr } translator: { fallback: fr }
profiler: { only_exceptions: false } profiler: { only_exceptions: false }
templating: #required for assetic. Remove if not needed templating: #required for assetic. Remove if not needed
engines: ['twig'] engines: ['twig']
doctrine:
dbal:
driver: pdo_pgsql
host: "%database_host%"
port: "%database_port%"
dbname: "%database_name%"
user: "%database_user%"
password: "%database_password%"
charset: UTF8
orm:
auto_generate_proxy_classes: "%kernel.debug%"
auto_mapping: true

View File

@ -0,0 +1,6 @@
parameters:
database_host: 127.0.0.1
database_port: 5434
database_name: symfony
database_user: symfony
database_password: symfony

View File

@ -0,0 +1,6 @@
parameters:
database_host: 127.0.0.1
database_port: 5434
database_name: symfony
database_user: symfony
database_password: symfony

View File

@ -1 +0,0 @@
routing.yml

View File

@ -25,6 +25,10 @@
"doctrine/dbal": "2.5.*@dev", "doctrine/dbal": "2.5.*@dev",
"doctrine/orm": "2.5.*@dev", "doctrine/orm": "2.5.*@dev",
"doctrine/common": "2.4.*@dev", "doctrine/common": "2.4.*@dev",
"doctrine/doctrine-bundle": "~1.2@dev" "doctrine/doctrine-bundle": "~1.2@dev",
"chill-project/main": "dev-master",
"chill-project/custom-fields": "dev-master"
},
"require-dev": {
} }
} }