Commit c730747e authored by Nicolas Widart's avatar Nicolas Widart

Logging a user in for the dasboard test

parent fc846dd0
<?php
use Cartalyst\Sentinel\Laravel\Facades\Sentinel;
class UrlTest extends TestCase
{
/** @test */
public function testDashboardAccessible()
{
$user = Sentinel::findById(4);
Sentinel::login($user);
$crawler = $this->client->request('GET', '/' . Config::get('core::core.admin-prefix'));
$this->assertTrue($this->client->getResponse()->isOk());
......
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