mirror of
https://github.com/crater-invoice/crater.git
synced 2026-02-08 20:02:39 -05:00
init crater
This commit is contained in:
22
tests/Feature/LoginTest.php
Normal file
22
tests/Feature/LoginTest.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user