Skip to content

Commit 27368b6

Browse files
committed
Remove test
1 parent cb13d6f commit 27368b6

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

tests/Feature/CustomerSubLicenseManagementTest.php

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -165,34 +165,6 @@ public function test_customer_can_suspend_sub_license(): void
165165
]);
166166
}
167167

168-
public function test_customer_can_unsuspend_sub_license(): void
169-
{
170-
Http::fake([
171-
'api.anystack.sh/v1/products/*/licenses/*' => Http::response(['success' => true], 200),
172-
]);
173-
174-
$user = User::factory()->create();
175-
$license = License::factory()->create([
176-
'user_id' => $user->id,
177-
'policy_name' => 'pro',
178-
]);
179-
$subLicense = SubLicense::factory()->create([
180-
'parent_license_id' => $license->id,
181-
'is_suspended' => true,
182-
]);
183-
184-
$response = $this->actingAs($user)
185-
->patch("/customer/licenses/{$license->key}/sub-licenses/{$subLicense->id}/unsuspend");
186-
187-
$response->assertRedirect("/customer/licenses/{$license->key}")
188-
->assertSessionHas('success', 'Sub-license unsuspended successfully!');
189-
190-
$this->assertDatabaseHas('sub_licenses', [
191-
'id' => $subLicense->id,
192-
'is_suspended' => false,
193-
]);
194-
}
195-
196168
public function test_customer_can_delete_sub_license(): void
197169
{
198170
Http::fake([

0 commit comments

Comments
 (0)