fix school year and enrollment steps
Tests / PHPUnit (push) Failing after 58s

This commit is contained in:
root
2026-08-15 21:15:05 -04:00
parent 4603d9ced2
commit 3cbfc40934
18 changed files with 1142 additions and 163 deletions
@@ -12,7 +12,7 @@ use PHPUnit\Framework\TestCase;
final class EnrollmentRegistrationEmailServiceTest extends TestCase
{
public function testPassedStudentUsesReEnrollmentOpeningLanguage(): void
public function testPassedStudentMessageStaysConcise(): void
{
$service = $this->service();
@@ -32,10 +32,10 @@ final class EnrollmentRegistrationEmailServiceTest extends TestCase
$action = $this->invoke($service, 'requiredAction', [$evaluation, 'August 31, 2026']);
$this->assertSame('Eligible', $status);
$this->assertStringContainsString('We are pleased to inform you that Student Name has successfully passed Grade 8.', $message);
$this->assertStringContainsString('Re-enrollment for the new school year will open on August 1, 2026.', $message);
$this->assertStringContainsString('Please make sure to re-enroll your child before August 31, 2026', $message);
$this->assertStringContainsString('sign in to the parent portal', $message);
$this->assertStringContainsString('Student Name has successfully passed Grade 8.', $message);
$this->assertStringNotContainsString('Re-enrollment for the new school year will open on August 1, 2026.', $message);
$this->assertStringNotContainsString('Please make sure to re-enroll your child before August 31, 2026', $message);
$this->assertStringNotContainsString('sign in to the parent portal', $message);
$this->assertStringContainsString('Complete re-enrollment before August 31, 2026.', $action);
$this->assertStringNotContainsString('Not Eligible', $status);
$this->assertStringNotContainsString('Registration for the new school year has not opened yet', $message);