File: /home/imensosw/www/amanda/tests/Feature/ExampleTest.php
<?php
namespace Tests\Feature;
use Tests\TestCase;
use Illuminate\Foundation\Testing\RefreshDatabase;
use App\User;
class ExampleTest extends TestCase
{
/**
* A basic test example.
*
* @return void
*/
public function testBasicTest()
{
/*$response = $this->get('/');
$response->assertStatus(200);*/
//$this->withoutExceptionHandling();
// $user = \App\User::where(array('status'=>'active','is_admin'=>1))->inRandomOrder()->first();
// $response = $this->actingAs($user)->json('GET','/admin/products');
// dd($response->getContent());
$response = $this->get('/login');
$response->assertStatus(200);
// dd($response->getContent());
}
}