We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95d23c5 commit b7b73d9Copy full SHA for b7b73d9
UnitTests/CCPackageUnzipperTests.m
@@ -115,6 +115,18 @@ - (void)testUnzippingOfInaccessibleUnzipFolder
115
}
116
*/
117
118
+- (void)testUnzipTrash
119
+{
120
+ NSString *pathToZip = [NSTemporaryDirectory() stringByAppendingPathComponent:@"trash.zip"];
121
+
122
+ [@"asdiuhaiudhweudiuwefi" writeToFile:pathToZip atomically:YES encoding:NSUTF8StringEncoding error:nil];
123
124
+ _package.localDownloadURL = [NSURL fileURLWithPath:pathToZip];
125
126
+ [self unzipUntilDelegateMethodsReturn:nil];
127
+ XCTAssertFalse(_unzippingSuccessful);
128
+}
129
130
- (void)testUnzipOfPasswordProtectedPackage
131
{
132
NSString *pathToZip = [[NSBundle mainBundle] pathForResource:@"Resources-shared/Packages/password-iOS-phone" ofType:@"zip"];
0 commit comments