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:
co-authored by
Claude Sonnet 5.5
parent
3c7710f1de
commit
a443ec3bf6
@@ -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 <b>1U</b>', $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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user