Skip to content

Commit 72d7b74

Browse files
committed
Fix the test case after upgrading the API
1 parent fea42ed commit 72d7b74

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

Storage/FirebaseStorageUITests/FUIImageViewCategoryTests.m

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -114,23 +114,23 @@ - (void)testItCancelsTheCurrentDownloadWhenSettingAnImage {
114114
}
115115

116116
- (void)testLoaderWithNilStorageReference {
117-
[SDWebImageFIRStorageLoader.sharedLoader loadImageWithURL:nil
118-
options:0
119-
context:nil
120-
progress:nil
121-
completed:^(UIImage * _Nullable image, NSData * _Nullable data, NSError * _Nullable error, BOOL finished) {
122-
XCTAssertNil(image);
123-
XCTAssertNotNil(error);
124-
}];
117+
[SDWebImageFIRStorageLoader.sharedLoader requestImageWithURL:nil
118+
options:0
119+
context:nil
120+
progress:nil
121+
completed:^(UIImage * _Nullable image, NSData * _Nullable data, NSError * _Nullable error, BOOL finished) {
122+
XCTAssertNil(image);
123+
XCTAssertNotNil(error);
124+
}];
125125
NSURL *httpURL = [NSURL URLWithString:@"www.google.com"];
126-
[SDWebImageFIRStorageLoader.sharedLoader loadImageWithURL:httpURL
127-
options:0
128-
context:nil
129-
progress:nil
130-
completed:^(UIImage * _Nullable image, NSData * _Nullable data, NSError * _Nullable error, BOOL finished) {
131-
XCTAssertNil(image);
132-
XCTAssertNotNil(error);
133-
}];
126+
[SDWebImageFIRStorageLoader.sharedLoader requestImageWithURL:httpURL
127+
options:0
128+
context:nil
129+
progress:nil
130+
completed:^(UIImage * _Nullable image, NSData * _Nullable data, NSError * _Nullable error, BOOL finished) {
131+
XCTAssertNil(image);
132+
XCTAssertNotNil(error);
133+
}];
134134
}
135135

136136
@end

Storage/Podfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ target 'FirebaseStorageUI' do
44
use_frameworks!
55

66
pod 'Firebase/Storage'
7-
pod 'SDWebImage', '>= 5.0.0-beta6'
7+
pod 'SDWebImage', '~> 5.0'
88
end
99

1010
target 'FirebaseStorageUITests' do
1111
use_frameworks!
1212

1313
pod 'Firebase/Storage'
14-
pod 'SDWebImage', '>= 5.0.0-beta6'
14+
pod 'SDWebImage', '~> 5.0'
1515
pod 'OCMock'
1616
end

Storage/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ PODS:
2424
DEPENDENCIES:
2525
- Firebase/Storage
2626
- OCMock
27-
- SDWebImage (>= 5.0.0-beta6)
27+
- SDWebImage (~> 5.0)
2828

2929
SPEC REPOS:
3030
https://github.com/cocoapods/specs.git:
@@ -47,6 +47,6 @@ SPEC CHECKSUMS:
4747
OCMock: 43565190abc78977ad44a61c0d20d7f0784d35ab
4848
SDWebImage: 5de80a0302de9e377e62f47d2fa1304efff0e55f
4949

50-
PODFILE CHECKSUM: ab1bf06e946282a4f1439f4514aeec58dcde8c0f
50+
PODFILE CHECKSUM: 257b15ecb7b966143e9994f21e65b042cc02e579
5151

5252
COCOAPODS: 1.6.1

0 commit comments

Comments
 (0)