mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-23 22:44:08 +00:00
37 lines
622 B
PHP
37 lines
622 B
PHP
<?php
|
|
|
|
namespace Tests\Unit;
|
|
|
|
use App\Models\User;
|
|
use JWTAuth;
|
|
use Tests\TestCase;
|
|
|
|
class DashboardTest extends TestCase
|
|
{
|
|
/**
|
|
* A basic feature test example.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function test_user_visit_dashboard()
|
|
{
|
|
$response = $this->get('/dashboard');
|
|
|
|
$response->assertStatus(200);
|
|
}
|
|
|
|
/**
|
|
* test a user can see a list of customer on the dashboard
|
|
* @return void
|
|
*/
|
|
public function test_customers_are_loaded_on_the_customer_page()
|
|
{
|
|
$user = User::factory()->create();
|
|
|
|
$token = JWTAuth::fromUser($user);
|
|
|
|
|
|
}
|
|
|
|
}
|