Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Feature/VerificationCodeTest.php
<?php | <?php | ||||
namespace Tests\Feature; | namespace Tests\Feature; | ||||
use App\User; | use App\User; | ||||
use App\VerificationCode; | use App\VerificationCode; | ||||
use Tests\TestCase; | use Tests\TestCase; | ||||
use Illuminate\Foundation\Testing\WithFaker; | use Illuminate\Foundation\Testing\WithFaker; | ||||
use Illuminate\Foundation\Testing\RefreshDatabase; | use Illuminate\Foundation\Testing\RefreshDatabase; | ||||
class VerificationCodeTest extends TestCase | class VerificationCodeTest extends TestCase | ||||
{ | { | ||||
public function setUp(): void | |||||
{ | |||||
parent::setUp(); | |||||
$this->deleteTestUser('UserAccountA@UserAccount.com'); | |||||
} | |||||
public function tearDown(): void | |||||
{ | |||||
$this->deleteTestUser('UserAccountA@UserAccount.com'); | |||||
parent::tearDown(); | |||||
} | |||||
/** | /** | ||||
* Test VerificationCode creation | * Test VerificationCode creation | ||||
*/ | */ | ||||
public function testVerificationCodeCreate(): void | public function testVerificationCodeCreate(): void | ||||
{ | { | ||||
$user = $this->getTestUser('UserAccountA@UserAccount.com'); | $user = $this->getTestUser('UserAccountA@UserAccount.com'); | ||||
$data = [ | $data = [ | ||||
'user_id' => $user->id, | 'user_id' => $user->id, | ||||
Show All 24 Lines |