Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Feature/DomainTest.php
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | public function testCreate(): void | ||||
'type' => Domain::TYPE_EXTERNAL, | 'type' => Domain::TYPE_EXTERNAL, | ||||
]); | ]); | ||||
$result = Domain::where('namespace', 'gmail.com')->first(); | $result = Domain::where('namespace', 'gmail.com')->first(); | ||||
$this->assertSame('gmail.com', $result->namespace); | $this->assertSame('gmail.com', $result->namespace); | ||||
$this->assertSame($domain->id, $result->id); | $this->assertSame($domain->id, $result->id); | ||||
$this->assertSame($domain->type, $result->type); | $this->assertSame($domain->type, $result->type); | ||||
$this->assertSame(Domain::STATUS_NEW | Domain::STATUS_ACTIVE, $result->status); | $this->assertSame(Domain::STATUS_NEW, $result->status); | ||||
} | } | ||||
/** | /** | ||||
* Test domain creating jobs | * Test domain creating jobs | ||||
*/ | */ | ||||
public function testCreateJobs(): void | public function testCreateJobs(): void | ||||
{ | { | ||||
// Fake the queue, assert that no jobs were pushed... | // Fake the queue, assert that no jobs were pushed... | ||||
▲ Show 20 Lines • Show All 145 Lines • Show Last 20 Lines |