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
452 B

<?php
namespace Tests\Unit\Models;
use App\Entities\Partners\Customer;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Tests\TestCase as TestCase;
class CustomerTest extends TestCase
{
use DatabaseMigrations;
/** @test */
public function it_has_name_attribute()
{
$customer = factory(Customer::class)->create(['name' => 'Customer 1 name']);
$this->assertEquals('Customer 1 name', $customer->name);
}
}