Skip to content

Commit

Permalink
Fixed tests setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierstoval committed May 31, 2018
1 parent 80b2495 commit f05894b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
12 changes: 7 additions & 5 deletions Tests/Fixtures/App/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
* file that was distributed with this source code.
*/

namespace Orbitale\Bundle\CmsBundle\Tests\Fixtures\App;

use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\HttpKernel\Kernel;

Expand All @@ -17,12 +19,12 @@ class AppKernel extends Kernel
public function registerBundles()
{
return [
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\TwigBundle\TwigBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new \Symfony\Bundle\TwigBundle\TwigBundle(),
new \Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),

new Orbitale\Bundle\CmsBundle\OrbitaleCmsBundle(),
new Orbitale\Bundle\CmsBundle\Tests\Fixtures\TestBundle\TestBundle(),
new \Orbitale\Bundle\CmsBundle\OrbitaleCmsBundle(),
new \Orbitale\Bundle\CmsBundle\Tests\Fixtures\TestBundle\TestBundle(),
];
}

Expand Down
1 change: 1 addition & 0 deletions Tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use Doctrine\Bundle\DoctrineBundle\Command\CreateDatabaseDoctrineCommand;
use Doctrine\Bundle\DoctrineBundle\Command\Proxy\CreateSchemaDoctrineCommand;
use Doctrine\Common\Annotations\AnnotationRegistry;
use Orbitale\Bundle\CmsBundle\Tests\Fixtures\App\AppKernel;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Output\ConsoleOutput;
Expand Down
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
"Orbitale\\Bundle\\CmsBundle\\": ""
}
},
"autoload-dev": {
"psr-4": {
"Orbitale\\Bundle\\CmsBundle\\Tests\\": "Tests"
}
},
"authors": [
{
"name" : "Alexandre \"Orbitale\" Ancelet",
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
-->

<php>
<server name="KERNEL_DIR" value="./Tests/Fixtures/App" />
<server name="KERNEL_CLASS" value="Orbitale\Bundle\CmsBundle\Tests\Fixtures\App\AppKernel" />
<ini name="zend.enable_gc" value="0" />
</php>

Expand Down

0 comments on commit f05894b

Please sign in to comment.