add all controllers logic

This commit is contained in:
root
2026-03-11 17:53:15 -04:00
parent 3e6c577085
commit 2ef71cc92b
421 changed files with 12009 additions and 5211 deletions
@@ -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);