add all controllers logic
This commit is contained in:
@@ -39,6 +39,8 @@ class RegisterControllerTest extends TestCase
|
||||
'is_active' => 1,
|
||||
]);
|
||||
|
||||
$captcha = $this->getJson('/api/v1/auth/register/captcha')->json('captcha');
|
||||
|
||||
$payload = [
|
||||
'firstname' => 'Parent',
|
||||
'lastname' => 'User',
|
||||
@@ -52,13 +54,12 @@ class RegisterControllerTest extends TestCase
|
||||
'state' => 'CT',
|
||||
'zip' => '12345',
|
||||
'accept_school_policy' => 1,
|
||||
'captcha' => 'ABCD',
|
||||
'captcha' => $captcha,
|
||||
'is_parent' => 1,
|
||||
'no_second_parent_info' => 1,
|
||||
];
|
||||
|
||||
$response = $this->withSession(['captcha_answer' => 'ABCD'])
|
||||
->postJson('/api/v1/auth/register', $payload);
|
||||
$response = $this->postJson('/api/v1/auth/register', $payload);
|
||||
|
||||
$response->assertCreated();
|
||||
$response->assertJsonPath('ok', true);
|
||||
|
||||
Reference in New Issue
Block a user