Move some tests into their own subfodlers
This commit is contained in:
parent
0dd6adfa0e
commit
e1aa814d8c
18 changed files with 29 additions and 31 deletions
22
tests/Unit/Jobs/AddClientToDatabaseJobTest.php
Normal file
22
tests/Unit/Jobs/AddClientToDatabaseJobTest.php
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
namespace Tests\Unit\Jobs;
|
||||
|
||||
use Tests\TestCase;
|
||||
use App\Jobs\AddClientToDatabase;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
|
||||
class AddClientToDatabaseJobTest extends TestCase
|
||||
{
|
||||
use DatabaseTransactions;
|
||||
|
||||
public function test_job_adds_client()
|
||||
{
|
||||
$job = new AddClientToDatabase('https://example.org/client');
|
||||
$job->handle();
|
||||
$this->assertDatabaseHas('clients', [
|
||||
'client_url' => 'https://example.org/client',
|
||||
'client_name' => 'https://example.org/client',
|
||||
]);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue