Tests/Controller/DefaultControllerTest.php
author cavaliet
Wed, 26 Oct 2011 15:38:05 +0200
changeset 14 673b2766024e
parent 1 06a22ff5d58d
permissions -rwxr-xr-x
Update ORM configuration to allow JOIN between Tag and DocumentTag. TagList template has now the number of documents by tag.

<?php

namespace IRI\Bundle\WikiTagBundle\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);
    }
}