This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user