File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff 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 ([
You can’t perform that action at this time.
0 commit comments