Move some tests into their own subfodlers

This commit is contained in:
Jonny Barnes 2017-12-18 17:53:22 +00:00
parent 0dd6adfa0e
commit e1aa814d8c
18 changed files with 29 additions and 31 deletions

View 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',
]);
}
}