feat(portal): lead module, WHMCS sync report/contacts/mapping, service lifecycle email templates

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
baodev0
2026-10-21 16:55:19 +07:00
co-authored by Claude Sonnet 5.5
parent 3c7710f1de
commit a443ec3bf6
66 changed files with 2032 additions and 124 deletions
@@ -65,7 +65,7 @@ class IpAllocationTest extends TestCase
$response = $this->actingAs($this->admin, 'admin')
->postJson(self::BASE . '/allocation/preview', $this->allocation([$pool->id]))
->assertOk()
->assertJsonPath('data.subject', 'Thông báo cấp phát 1 địa chỉ IP');
->assertJsonPath('data.subject', 'V/v: Thế Giới Số cấp phát 1 địa chỉ IP | Công ty A');
$this->assertStringContainsString('10.0.0.5', $response->json('data.html'));
$this->assertStringContainsString('Colo &lt;b&gt;1U&lt;/b&gt;', $response->json('data.html'));
@@ -122,7 +122,7 @@ class IpAllocationTest extends TestCase
->postJson(self::BASE . '/allocate', $payload)
->assertOk();
Mail::assertQueued(IpAllocationMail::class, fn (IpAllocationMail $mail) => $mail->envelope()->subject === 'Thông báo cấp phát 2 địa chỉ IP');
Mail::assertQueued(IpAllocationMail::class, fn (IpAllocationMail $mail) => $mail->envelope()->subject === 'V/v: Thế Giới Số cấp phát 2 địa chỉ IP | Công ty A');
$this->assertSame('Dịch vụ IP', $first->fresh()->service_name);
$this->assertSame('CLOUD VPS SILVER', $second->fresh()->service_name);
}