Skip to content

Commit 0cdd7b1

Browse files
authored
[Xcode 15] Spaces are now valid in URL strings (#11407)
1 parent 5fa4304 commit 0cdd7b1

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

FirebaseMLModelDownloader/Tests/Unit/ModelDownloaderUnitTests.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,10 @@
241241

242242
/// Test how URL conversion behaves if there are spaces in the path.
243243
func testURLConversion() {
244-
/// Spaces in the string only convert to URL when using URL(fileURLWithPath: ).
245244
let fakeURLWithSpace = URL(string: "file:///fakeDir1/fake%20Dir2/fakeFile")!
246245

247246
XCTAssertEqual(fakeURLWithSpace, URL(string: fakeURLWithSpace.absoluteString))
248247
XCTAssertEqual(fakeURLWithSpace, URL(fileURLWithPath: fakeURLWithSpace.path))
249-
XCTAssertNil(URL(string: fakeURLWithSpace.path))
250248

251249
/// Strings without spaces should work fine either way.
252250
let fakeURLWithoutSpace = URL(string: "fakeDir1/fakeDir2/fakeFile")!

FirebaseMessaging/Tests/UnitTests/FIRMessagingLinkHandlingTest.m

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,6 @@ - (void)testNonStringLinkInMessage {
8282
XCTAssertNil(url);
8383
}
8484

85-
- (void)testInvalidURLStringLinkInMessage {
86-
NSMutableDictionary *notification =
87-
[FIRMessagingTestNotificationUtilities createBasicNotificationWithUniqueMessageID];
88-
notification[kFIRMessagingMessageLinkKey] = @"This is not a valid url string";
89-
NSURL *url = [_messaging linkURLFromMessage:notification];
90-
XCTAssertNil(url);
91-
}
92-
9385
- (void)testValidURLStringLinkInMessage {
9486
NSMutableDictionary *notification =
9587
[FIRMessagingTestNotificationUtilities createBasicNotificationWithUniqueMessageID];

0 commit comments

Comments
 (0)