Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Browser/SignupTest.php
Show All 16 Lines | |||||
{ | { | ||||
/** | /** | ||||
* {@inheritDoc} | * {@inheritDoc} | ||||
*/ | */ | ||||
public function setUp(): void | public function setUp(): void | ||||
{ | { | ||||
parent::setUp(); | parent::setUp(); | ||||
Domain::where('namespace', 'user-domain-signup.com')->delete(); | $this->deleteTestUser('signuptestdusk@' . \config('app.domain')); | ||||
User::where('email', 'signuptestdusk@' . \config('app.domain')) | $this->deleteTestUser('admin@user-domain-signup.com'); | ||||
->orWhere('email', 'admin@user-domain-signup.com') | $this->deleteTestDomain('user-domain-signup.com'); | ||||
->delete(); | } | ||||
public function tearDown(): void | |||||
{ | |||||
$this->deleteTestUser('signuptestdusk@' . \config('app.domain')); | |||||
$this->deleteTestUser('admin@user-domain-signup.com'); | |||||
$this->deleteTestDomain('user-domain-signup.com'); | |||||
parent::tearDown(); | |||||
} | } | ||||
/** | /** | ||||
* Test signup code verification with a link | * Test signup code verification with a link | ||||
*/ | */ | ||||
public function testSignupCodeByLink(): void | public function testSignupCodeByLink(): void | ||||
{ | { | ||||
// Test invalid code (invalid format) | // Test invalid code (invalid format) | ||||
▲ Show 20 Lines • Show All 464 Lines • Show Last 20 Lines |