Skip to content

Commit a125052

Browse files
fix: use property assignment syntax for setConfiguration in tests
setConfiguration: is the custom setter for the configuration property declared in the public header — Swift requires property assignment syntax (kit.configuration = ...) rather than calling setConfiguration() directly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 61c4d89 commit a125052

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Kits/urbanairship/urbanairship-19/Tests/mParticle-UrbanAirshipTests/MPKitUrbanAirshipTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ final class MPKitUrbanAirshipTests: XCTestCase {
1313

1414
func testEventTagsMappingUsesCorrectKey() {
1515
let kit = MPKitUrbanAirship()
16-
kit.setConfiguration(makeConfiguration(
16+
kit.configuration = makeConfiguration(
1717
eventTagsMapType: "EventClass.Id",
1818
eventAttributeTagsMapType: "EventAttributeClass.Id"
19-
))
19+
)
2020

2121
let mappings = kit.value(forKey: "eventTagsMapping") as? [NSObject]
2222
let firstMapType = mappings?.first?.value(forKey: "mapType") as? String
@@ -27,10 +27,10 @@ final class MPKitUrbanAirshipTests: XCTestCase {
2727

2828
func testEventAttributeTagsMappingUsesCorrectKey() {
2929
let kit = MPKitUrbanAirship()
30-
kit.setConfiguration(makeConfiguration(
30+
kit.configuration = makeConfiguration(
3131
eventTagsMapType: "EventClass.Id",
3232
eventAttributeTagsMapType: "EventAttributeClass.Id"
33-
))
33+
)
3434

3535
let mappings = kit.value(forKey: "eventAttributeTagsMapping") as? [NSObject]
3636
let firstMapType = mappings?.first?.value(forKey: "mapType") as? String

Kits/urbanairship/urbanairship-20/Tests/mParticle-UrbanAirshipTests/MPKitUrbanAirshipTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ final class MPKitUrbanAirshipTests: XCTestCase {
1313

1414
func testEventTagsMappingUsesCorrectKey() {
1515
let kit = MPKitUrbanAirship()
16-
kit.setConfiguration(makeConfiguration(
16+
kit.configuration = makeConfiguration(
1717
eventTagsMapType: "EventClass.Id",
1818
eventAttributeTagsMapType: "EventAttributeClass.Id"
19-
))
19+
)
2020

2121
let mappings = kit.value(forKey: "eventTagsMapping") as? [NSObject]
2222
let firstMapType = mappings?.first?.value(forKey: "mapType") as? String
@@ -27,10 +27,10 @@ final class MPKitUrbanAirshipTests: XCTestCase {
2727

2828
func testEventAttributeTagsMappingUsesCorrectKey() {
2929
let kit = MPKitUrbanAirship()
30-
kit.setConfiguration(makeConfiguration(
30+
kit.configuration = makeConfiguration(
3131
eventTagsMapType: "EventClass.Id",
3232
eventAttributeTagsMapType: "EventAttributeClass.Id"
33-
))
33+
)
3434

3535
let mappings = kit.value(forKey: "eventAttributeTagsMapping") as? [NSObject]
3636
let firstMapType = mappings?.first?.value(forKey: "mapType") as? String

0 commit comments

Comments
 (0)