Commit 74be5453 authored by Nicolas Widart's avatar Nicolas Widart

Adding accessibility tests

parent c85f5344
<?php namespace Modules\User\Tests;
use Cartalyst\Sentinel\Laravel\Facades\Sentinel;
use Illuminate\Support\Facades\Config;
class UrlTest extends \TestCase
{
/** @test */
public function userIndexShouldBeAccessible()
{
$user = Sentinel::findById(4);
Sentinel::login($user);
$uri = '/' . Config::get('core::core.admin-prefix') . '/users';
$crawler = $this->client->request('GET', $uri);
$this->assertTrue($this->client->getResponse()->isOk());
$this->assertCount(1, $crawler->filter('h1:contains("Users")'));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment