Tests/Controller/DefaultControllerTest.php
author cavaliet
Wed, 09 Nov 2011 17:33:26 +0100
changeset 31 b910b4f7485f
parent 1 06a22ff5d58d
permissions -rwxr-xr-x
First step of context menu to add tag by selecting a part of text in the page.

<?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);
    }
}