@@ -32,7 +32,7 @@ public function shouldGetAllBoards(): void
32
32
$ api ->expects ($ this ->once ())
33
33
->method ('get ' )
34
34
->with ('boards ' , [])
35
- ->will ( $ this -> returnValue ( $ expectedArray) )
35
+ ->willReturn ( $ expectedArray )
36
36
;
37
37
38
38
$ this ->assertEquals ($ expectedArray , $ api ->all ());
@@ -49,7 +49,7 @@ public function shouldShowIssueBoard(): void
49
49
$ api ->expects ($ this ->once ())
50
50
->method ('get ' )
51
51
->with ('groups/1/boards/2 ' )
52
- ->will ( $ this -> returnValue ( $ expectedArray) )
52
+ ->willReturn ( $ expectedArray )
53
53
;
54
54
55
55
$ this ->assertEquals ($ expectedArray , $ api ->show (1 , 2 ));
@@ -66,7 +66,7 @@ public function shouldCreateIssueBoard(): void
66
66
$ api ->expects ($ this ->once ())
67
67
->method ('post ' )
68
68
->with ('groups/1/boards ' , ['name ' => 'A new issue board ' ])
69
- ->will ( $ this -> returnValue ( $ expectedArray) )
69
+ ->willReturn ( $ expectedArray )
70
70
;
71
71
72
72
$ this ->assertEquals ($ expectedArray , $ api ->create (1 , ['name ' => 'A new issue board ' ]));
@@ -83,7 +83,7 @@ public function shouldUpdateIssueBoard(): void
83
83
$ api ->expects ($ this ->once ())
84
84
->method ('put ' )
85
85
->with ('groups/1/boards/2 ' , ['name ' => 'A renamed issue board ' , 'labels ' => 'foo ' ])
86
- ->will ( $ this -> returnValue ( $ expectedArray) )
86
+ ->willReturn ( $ expectedArray )
87
87
;
88
88
89
89
$ this ->assertEquals ($ expectedArray , $ api ->update (1 , 2 , ['name ' => 'A renamed issue board ' , 'labels ' => 'foo ' ]));
@@ -100,7 +100,7 @@ public function shouldRemoveIssueBoard(): void
100
100
$ api ->expects ($ this ->once ())
101
101
->method ('delete ' )
102
102
->with ('groups/1/boards/2 ' )
103
- ->will ( $ this -> returnValue ( $ expectedBool ))
103
+ ->willReturn ( $ expectedBool );
104
104
;
105
105
106
106
$ this ->assertEquals ($ expectedBool , $ api ->remove (1 , 2 ));
@@ -135,7 +135,7 @@ public function shouldGetAllLists(): void
135
135
$ api ->expects ($ this ->once ())
136
136
->method ('get ' )
137
137
->with ('groups/1/boards/2/lists ' )
138
- ->will ( $ this -> returnValue ( $ expectedArray) )
138
+ ->willReturn ( $ expectedArray )
139
139
;
140
140
141
141
$ this ->assertEquals ($ expectedArray , $ api ->allLists (1 , 2 ));
@@ -162,7 +162,7 @@ public function shouldGetList(): void
162
162
$ api ->expects ($ this ->once ())
163
163
->method ('get ' )
164
164
->with ('groups/1/boards/2/lists/3 ' )
165
- ->will ( $ this -> returnValue ( $ expectedArray) )
165
+ ->willReturn ( $ expectedArray )
166
166
;
167
167
168
168
$ this ->assertEquals ($ expectedArray , $ api ->showList (1 , 2 , 3 ));
@@ -189,7 +189,7 @@ public function shouldCreateList(): void
189
189
$ api ->expects ($ this ->once ())
190
190
->method ('post ' )
191
191
->with ('groups/1/boards/2/lists ' , ['label_id ' => 4 ])
192
- ->will ( $ this -> returnValue ( $ expectedArray) )
192
+ ->willReturn ( $ expectedArray )
193
193
;
194
194
195
195
$ this ->assertEquals ($ expectedArray , $ api ->createList (1 , 2 , 4 ));
@@ -216,7 +216,7 @@ public function shouldUpdateList(): void
216
216
$ api ->expects ($ this ->once ())
217
217
->method ('put ' )
218
218
->with ('groups/5/boards/2/lists/3 ' , ['position ' => 1 ])
219
- ->will ( $ this -> returnValue ( $ expectedArray) )
219
+ ->willReturn ( $ expectedArray )
220
220
;
221
221
222
222
$ this ->assertEquals ($ expectedArray , $ api ->updateList (5 , 2 , 3 , 1 ));
@@ -233,7 +233,7 @@ public function shouldDeleteList(): void
233
233
$ api ->expects ($ this ->once ())
234
234
->method ('delete ' )
235
235
->with ('groups/1/boards/2/lists/3 ' )
236
- ->will ( $ this -> returnValue ( $ expectedBool ))
236
+ ->willReturn ( $ expectedBool );
237
237
;
238
238
239
239
$ this ->assertEquals ($ expectedBool , $ api ->deleteList (1 , 2 , 3 ));
0 commit comments