Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Feature/EntitlementTest.php
<?php | <?php | ||||
namespace Tests\Feature; | namespace Tests\Feature; | ||||
use App\Domain; | use App\Domain; | ||||
use App\Entitlement; | use App\Entitlement; | ||||
use App\Package; | use App\Package; | ||||
use App\Sku; | use App\Sku; | ||||
use App\User; | use App\User; | ||||
use Carbon\Carbon; | use Carbon\Carbon; | ||||
use Tests\TestCase; | use Tests\TestCase; | ||||
class EntitlementTest extends TestCase | class EntitlementTest extends TestCase | ||||
{ | { | ||||
/** | |||||
* {@inheritDoc} | |||||
*/ | |||||
public function setUp(): void | public function setUp(): void | ||||
{ | { | ||||
parent::setUp(); | parent::setUp(); | ||||
$this->deleteTestUser('entitlement-test@kolabnow.com'); | $this->deleteTestUser('entitlement-test@kolabnow.com'); | ||||
$this->deleteTestUser('entitled-user@custom-domain.com'); | $this->deleteTestUser('entitled-user@custom-domain.com'); | ||||
$this->deleteTestDomain('custom-domain.com'); | $this->deleteTestDomain('custom-domain.com'); | ||||
} | } | ||||
/** | |||||
* {@inheritDoc} | |||||
*/ | |||||
public function tearDown(): void | public function tearDown(): void | ||||
{ | { | ||||
$this->deleteTestUser('entitlement-test@kolabnow.com'); | $this->deleteTestUser('entitlement-test@kolabnow.com'); | ||||
$this->deleteTestUser('entitled-user@custom-domain.com'); | $this->deleteTestUser('entitled-user@custom-domain.com'); | ||||
$this->deleteTestDomain('custom-domain.com'); | $this->deleteTestDomain('custom-domain.com'); | ||||
parent::tearDown(); | parent::tearDown(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 135 Lines • Show Last 20 Lines |