mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
23 lines
463 B
PHP
23 lines
463 B
PHP
<?php
|
|
namespace Tests\Feature;
|
|
|
|
use Tests\TestCase;
|
|
use Illuminate\Foundation\Testing\WithFaker;
|
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
|
|
|
class LoginTest extends TestCase
|
|
{
|
|
/** @test */
|
|
public function testLogin()
|
|
{
|
|
$data = array(
|
|
'username' => 'admin@crater.in',
|
|
'password' => 'admin@123'
|
|
);
|
|
|
|
$response = $this->json('POST', 'api/auth/login', $data);
|
|
|
|
$response->assertOk();
|
|
}
|
|
}
|