From b68f948b76cd767ceb2235c9b2938d76492e0c9c Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Wed, 26 Feb 2020 18:08:53 +0800 Subject: [PATCH] Move the test code of MapKit into SDWebImageMapKitPlugin and Fix for Podfile --- Podfile | 1 + Tests/Tests/SDWebCacheCategoriesTests.m | 16 ---------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/Podfile b/Podfile index 53873174..0156761a 100644 --- a/Podfile +++ b/Podfile @@ -11,6 +11,7 @@ def watch_example_pods end def all_test_pods + pod 'SDWebImage', :path => './' pod 'Expecta' pod 'KVOController' end diff --git a/Tests/Tests/SDWebCacheCategoriesTests.m b/Tests/Tests/SDWebCacheCategoriesTests.m index e8a30596..35b89271 100644 --- a/Tests/Tests/SDWebCacheCategoriesTests.m +++ b/Tests/Tests/SDWebCacheCategoriesTests.m @@ -53,22 +53,6 @@ } #endif -- (void)testMKAnnotationViewSetImageWithURL { - XCTestExpectation *expectation = [self expectationWithDescription:@"MKAnnotationView setImageWithURL"]; - - MKAnnotationView *annotationView = [[MKAnnotationView alloc] init]; - NSURL *originalImageURL = [NSURL URLWithString:kTestJPEGURL]; - [annotationView sd_setImageWithURL:originalImageURL - completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) { - expect(image).toNot.beNil(); - expect(error).to.beNil(); - expect(originalImageURL).to.equal(imageURL); - expect(annotationView.image).to.equal(image); - [expectation fulfill]; - }]; - [self waitForExpectationsWithCommonTimeout]; -} - #if SD_UIKIT - (void)testUIButtonSetImageWithURLNormalState { XCTestExpectation *expectation = [self expectationWithDescription:@"UIButton setImageWithURL normalState"];