27 lines
622 B
PHP
27 lines
622 B
PHP
<?php
|
|
|
|
namespace Tests;
|
|
|
|
use App\Models\User;
|
|
use App\Services\Repositories\UserRepository;
|
|
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
|
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
|
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
|
|
|
class UserRepositoryTest extends TestCase
|
|
{
|
|
use DatabaseTransactions;
|
|
|
|
public function testHas()
|
|
{
|
|
$repo = new UserRepository();
|
|
$this->assertFalse($repo->has('not_found', 'invalid'));
|
|
}
|
|
|
|
public function testGet()
|
|
{
|
|
$repo = new UserRepository();
|
|
$this->assertNull($repo->get('not_found', 'username'));
|
|
}
|
|
}
|