File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
native/swift/Tests/wordpress-api Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,8 @@ struct UsersTests {
42
42
apiRootUrl: ParsedUrl . parse ( input: " https://wordpress.org/wp-json " ) ,
43
43
authenticationProvider: . none( ) ,
44
44
executor: stubs,
45
- middlewarePipeline: . default
45
+ middlewarePipeline: . default,
46
+ appNotifier: nil
46
47
)
47
48
let user = try await api. users. retrieveWithViewContext ( userId: 1 )
48
49
#expect( user. data. name == " User Name " )
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ class HTTPErrorTests {
12
12
apiRootUrl: ParsedUrl . parse ( input: " https://wordpress.org/wp-json " ) ,
13
13
authenticationProvider: . none( ) ,
14
14
executor: stubs,
15
- middlewarePipeline: . default
15
+ middlewarePipeline: . default,
16
+ appNotifier: nil
16
17
)
17
18
18
19
await #expect( throws: WpApiError . self, performing: {
Original file line number Diff line number Diff line change @@ -46,7 +46,8 @@ struct WordPressAPITests {
46
46
apiRootUrl: ParsedUrl . parse ( input: " https://wordpress.org/wp-json " ) ,
47
47
authenticationProvider: . none( ) ,
48
48
executor: stubs,
49
- middlewarePipeline: . default
49
+ middlewarePipeline: . default,
50
+ appNotifier: nil
50
51
)
51
52
let user = try await api. users. retrieveWithViewContext ( userId: 1 )
52
53
#expect( user. data. name == " User Name " )
@@ -60,7 +61,8 @@ struct WordPressAPITests {
60
61
apiRootUrl: ParsedUrl . parse ( input: " https://wordpress.org/wp-json " ) ,
61
62
authenticationProvider: . none( ) ,
62
63
executor: stubs,
63
- middlewarePipeline: . init( middlewares: [ counter] )
64
+ middlewarePipeline: . init( middlewares: [ counter] ) ,
65
+ appNotifier: nil
64
66
)
65
67
_ = try await api. users. retrieveWithViewContext ( userId: 1 )
66
68
await #expect( counter. count == 1 )
You can’t perform that action at this time.
0 commit comments