remove empty default controller

This commit is contained in:
Julien Fastré 2016-03-24 14:30:08 +01:00
parent 75266361b2
commit 3ac192d34c
3 changed files with 0 additions and 31 deletions

View File

@ -1,13 +0,0 @@
<?php
namespace Chill\EventBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class DefaultController extends Controller
{
public function indexAction($name)
{
return $this->render('ChillEventBundle:Default:index.html.twig', array('name' => $name));
}
}

View File

@ -1 +0,0 @@
Hello {{ name }}!

View File

@ -1,17 +0,0 @@
<?php
namespace Chill\EventBundle\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);
}
}