mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
Phpunit is working
This commit is contained in:
parent
f1b66bb6dc
commit
c7e4388645
@ -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
|
||||||
|
@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
@ -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()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
6
Tests/Fixtures/App/config/parameters.yml
Normal file
6
Tests/Fixtures/App/config/parameters.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
parameters:
|
||||||
|
database_host: 127.0.0.1
|
||||||
|
database_port: 5434
|
||||||
|
database_name: symfony
|
||||||
|
database_user: symfony
|
||||||
|
database_password: symfony
|
6
Tests/Fixtures/App/config/parameters.yml.dist
Normal file
6
Tests/Fixtures/App/config/parameters.yml.dist
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
parameters:
|
||||||
|
database_host: 127.0.0.1
|
||||||
|
database_port: 5434
|
||||||
|
database_name: symfony
|
||||||
|
database_user: symfony
|
||||||
|
database_password: symfony
|
@ -1 +0,0 @@
|
|||||||
routing.yml
|
|
@ -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": {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user