@@ -29,8 +29,7 @@ final class DevicesRemoteTests: XCTestCase {
2929
3030 remote. registerDevice ( device: Parameters . appleDevice,
3131 applicationId: Parameters . applicationId,
32- applicationVersion: Parameters . applicationVersion,
33- defaultStoreID: Parameters . defaultStoreID) { ( settings, error) in
32+ applicationVersion: Parameters . applicationVersion) { ( settings, error) in
3433
3534 XCTAssertNil ( error)
3635 XCTAssertNotNil ( settings)
@@ -41,24 +40,6 @@ final class DevicesRemoteTests: XCTestCase {
4140 wait ( for: [ expectation] , timeout: Constants . expectationTimeout)
4241 }
4342
44- /// Verifies that registerDevice sets the `selected_blog_id` parameter to empty string.
45- ///
46- func test_registerDevice_sets_selected_blog_id_to_empty_string( ) throws {
47- // Given
48- let remote = DevicesRemote ( network: network)
49-
50- // When
51- remote. registerDevice ( device: Parameters . appleDevice,
52- applicationId: Parameters . applicationId,
53- applicationVersion: Parameters . applicationVersion,
54- defaultStoreID: Parameters . defaultStoreID) { ( _, _) in }
55-
56- // Then
57- let queryParameters = try XCTUnwrap ( network. queryParameters)
58- let expectedParam = " selected_blog_id= "
59- XCTAssertTrue ( queryParameters. contains ( expectedParam) , " Expected to have param: \( expectedParam) " )
60- }
61-
6243 /// Verifies that registerDevice parses a "Failure" Backend Response.
6344 ///
6445 func test_registerDevice_parses_general_failure_response( ) {
@@ -69,8 +50,7 @@ final class DevicesRemoteTests: XCTestCase {
6950
7051 remote. registerDevice ( device: Parameters . appleDevice,
7152 applicationId: Parameters . applicationId,
72- applicationVersion: Parameters . applicationVersion,
73- defaultStoreID: Parameters . defaultStoreID) { ( settings, error) in
53+ applicationVersion: Parameters . applicationVersion) { ( settings, error) in
7454
7555 XCTAssertNotNil ( error)
7656 XCTAssertNil ( settings)
@@ -124,6 +104,5 @@ private enum Parameters {
124104 identifierForVendor: " 1234 " )
125105 static let applicationId = " 9 "
126106 static let applicationVersion = " 99 "
127- static let defaultStoreID : Int64 = 1234
128107 static let dotcomDeviceID = " 1234 "
129108}
0 commit comments