Commit c730747e authored by Nicolas Widart's avatar Nicolas Widart

Logging a user in for the dasboard test

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