mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 22:04:23 +00:00
remove empty default controller
This commit is contained in:
parent
75266361b2
commit
3ac192d34c
@ -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));
|
||||
}
|
||||
}
|
@ -1 +0,0 @@
|
||||
Hello {{ name }}!
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user