feat: CI/CD pipeline setup complete - Ansible playbooks updated, secrets configured, workflow ready
This commit is contained in:
@@ -316,9 +316,14 @@ describe('SmartLink Integration', function () {
|
||||
// Delete link
|
||||
$this->service->deleteLink($link->id);
|
||||
|
||||
// Verify link is deleted
|
||||
expect(fn() => $this->service->findById($link->id))
|
||||
->toThrow(\App\Domain\SmartLink\Exceptions\SmartLinkNotFoundException::class);
|
||||
// Verify link is deleted - use try-catch instead of toThrow()
|
||||
$threwCorrectException = false;
|
||||
try {
|
||||
$this->service->findById($link->id);
|
||||
} catch (\App\Domain\SmartLink\Exceptions\SmartLinkNotFoundException $e) {
|
||||
$threwCorrectException = true;
|
||||
}
|
||||
expect($threwCorrectException)->toBeTrue();
|
||||
|
||||
// Verify destinations are deleted (getDestinations returns empty array)
|
||||
$afterDelete = $this->service->getDestinations($link->id);
|
||||
|
||||
Reference in New Issue
Block a user