You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
445 B
19 lines
445 B
<?php
|
|
|
|
namespace Tests\Unit\Models;
|
|
|
|
use App\Entities\Partners\Partner;
|
|
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
|
use Tests\TestCase as TestCase;
|
|
|
|
class PartnerTest extends TestCase
|
|
{
|
|
use DatabaseMigrations;
|
|
|
|
/** @test */
|
|
public function it_has_name_attribute()
|
|
{
|
|
$partner = factory(Partner::class)->create(['name' => 'Partner 1 name']);
|
|
$this->assertEquals('Partner 1 name', $partner->name);
|
|
}
|
|
}
|