Posts

Showing posts with the label testing

In app purchase live url show sandbox popup and allow subscription for sandbox user

In app purchase live url show sandbox popup and allow subscription for sandbox user I have added in-app purchase in my application it is working well in sandbox environment but when I change it's URL from sandbox to live and run the application it is behaving unexpectedly. Here is my code: Below are the method in which we are requesting to apple for getting in app purchase detail of user. -(BOOL) getSubscriptionStatusFromAppleWithReceipt:(NSData *) receiptData { NSError *error; NSMutableDictionary *requestContents = [NSMutableDictionary dictionaryWithObject: [receiptData base64EncodedStringWithOptions:0] forKey:@"receipt-data"]; NSString *sharedSecret = @“*********************”; if (sharedSecret) requestContents[@"password"] = sharedSecret; NSData *requestData = [NSJSONSerialization dataWithJSONObject:requestContents options:0 error:&error]; NSString *strUrl = @""; // Live server strUrl = @"https://buy...

Eclipse Photon does not resolve imports in test sources

Eclipse Photon does not resolve imports in test sources I have moved to Eclipse Photon with an existing workspace. I have some Maven projects in this workspace. All projects did not have any errors in Eclipse Oxygen. After opening my workspace in Eclipse Photon all test-classes which import org.mockito.Mockito , org.springframework.mock and org.springframework.test have errors. These imports cannot be resolved though Eclipse is aware of them as I can jump into the classes. org.mockito.Mockito org.springframework.mock org.springframework.test Why can Eclipse Photon not resolve these imports? And how can I fix this? 2 Answers 2 If this is really a maven project and you are using matching m2e-version 1.9, it should automatically configure the "Contains test sources."-setting and the related settings correctly. You may have to update the project classpath by right-clicking on the project and...

MethodNotAllowedHttpException when testing on Lumen 5.6

MethodNotAllowedHttpException when testing on Lumen 5.6 I am testing a Lumen 5.6 API . Here is my route: $router->delete('/tournaments/{slug}', 'TournamentController@destroy'); When consuming with Angular 6, I have no problem, route is working, but when I try to test with PHPUnit with: $this->call('DELETE', '/tournaments/' . $tournament->slug); I get a MethodNotAllowedHttpException MethodNotAllowedHttpException Why ? By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.