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.
24 lines
684 B
24 lines
684 B
<?php
|
|
|
|
namespace Tests\Unit\Models;
|
|
|
|
use App\Entities\Partners\Partner;
|
|
use App\Entities\Subscriptions\Subscription;
|
|
use Tests\TestCase as TestCase;
|
|
|
|
class SubscriptionTest extends TestCase
|
|
{
|
|
/** @test */
|
|
public function it_has_domain_name_attribute()
|
|
{
|
|
$subscription = factory(Subscription::class)->create(['domain_name' => 'Subscription 1 Domain Name']);
|
|
$this->assertEquals('Subscription 1 Domain Name', $subscription->domain_name);
|
|
}
|
|
|
|
/** @test */
|
|
public function it_has_customer_relation()
|
|
{
|
|
$subscription = factory(Subscription::class)->create();
|
|
$this->assertTrue($subscription->customer instanceof Partner);
|
|
}
|
|
}
|