<?php

namespace Sso\DemoBundle\Tests\Controller;

use Sso\DemoBundle\Tests\FunctionalTestCase;

class UserApplicationRoleControllerTest extends FunctionalTestCase
{
    public function testAdd()
    {
        $client = $this->makeClient(true);

        $crawler = $client->request('GET', '/demo/user/application/role/add');
        $this->assertTrue($client->getResponse()->isSuccessful());
        $this->assertTrue($crawler->filter('html:contains("UserApplicationRole - Add")')->count() > 0);
    }

    public function testDelete()
    {
        $client = $this->makeClient(true);

        $crawler = $client->request('GET', '/demo/user/application/role/delete');
        $this->assertTrue($client->getResponse()->isSuccessful());
        $this->assertTrue($crawler->filter('html:contains("UserApplicationRole - Delete")')->count() > 0);
    }

}
