Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Tests/Controller/FakeControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Liuggio\ExcelBundle\Tests\Controller;

use Liuggio\ExcelBundle\Tests\app\AppKernel;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
Expand Down Expand Up @@ -71,4 +72,12 @@ public function testReadAndSaveAction()

$this->assertFileExists($content, sprintf('file %s should exist', $content));
}

/**
* @inheritdoc
*/
protected static function getKernelClass()
{
return AppKernel::class;
}
}
7 changes: 4 additions & 3 deletions Tests/app/AppKernel.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
namespace Liuggio\ExcelBundle\Tests\app;

use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
Expand All @@ -9,10 +10,10 @@ public function registerBundles()
{
$bundles = array(
// Dependencies
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new \Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
// My Bundle to test
new Liuggio\ExcelBundle\LiuggioExcelBundle(),
new \Liuggio\ExcelBundle\LiuggioExcelBundle(),
);

return $bundles;
Expand Down