Files
shipping-portal/tests/Unit/DashboardTest.php
T
2023-02-04 10:04:34 +03:00

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);
}
}