Ver Fonte

Move the test code of MapKit into SDWebImageMapKitPlugin and Fix for Podfile

DreamPiggy há 6 anos atrás
pai
commit
b68f948b76
2 ficheiros alterados com 1 adições e 16 exclusões
  1. 1 0
      Podfile
  2. 0 16
      Tests/Tests/SDWebCacheCategoriesTests.m

+ 1 - 0
Podfile

@@ -11,6 +11,7 @@ def watch_example_pods
 end
 
 def all_test_pods
+  pod 'SDWebImage', :path => './'
   pod 'Expecta'
   pod 'KVOController'
 end

+ 0 - 16
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"];