@@ -32,7 +32,7 @@ public function shouldGetAllBoards(): void
3232 $ api ->expects ($ this ->once ())
3333 ->method ('get ' )
3434 ->with ('boards ' , [])
35- ->will ( $ this -> returnValue ( $ expectedArray) )
35+ ->willReturn ( $ expectedArray )
3636 ;
3737
3838 $ this ->assertEquals ($ expectedArray , $ api ->all ());
@@ -49,7 +49,7 @@ public function shouldShowIssueBoard(): void
4949 $ api ->expects ($ this ->once ())
5050 ->method ('get ' )
5151 ->with ('groups/1/boards/2 ' )
52- ->will ( $ this -> returnValue ( $ expectedArray) )
52+ ->willReturn ( $ expectedArray )
5353 ;
5454
5555 $ this ->assertEquals ($ expectedArray , $ api ->show (1 , 2 ));
@@ -66,7 +66,7 @@ public function shouldCreateIssueBoard(): void
6666 $ api ->expects ($ this ->once ())
6767 ->method ('post ' )
6868 ->with ('groups/1/boards ' , ['name ' => 'A new issue board ' ])
69- ->will ( $ this -> returnValue ( $ expectedArray) )
69+ ->willReturn ( $ expectedArray )
7070 ;
7171
7272 $ this ->assertEquals ($ expectedArray , $ api ->create (1 , ['name ' => 'A new issue board ' ]));
@@ -83,7 +83,7 @@ public function shouldUpdateIssueBoard(): void
8383 $ api ->expects ($ this ->once ())
8484 ->method ('put ' )
8585 ->with ('groups/1/boards/2 ' , ['name ' => 'A renamed issue board ' , 'labels ' => 'foo ' ])
86- ->will ( $ this -> returnValue ( $ expectedArray) )
86+ ->willReturn ( $ expectedArray )
8787 ;
8888
8989 $ this ->assertEquals ($ expectedArray , $ api ->update (1 , 2 , ['name ' => 'A renamed issue board ' , 'labels ' => 'foo ' ]));
@@ -100,7 +100,7 @@ public function shouldRemoveIssueBoard(): void
100100 $ api ->expects ($ this ->once ())
101101 ->method ('delete ' )
102102 ->with ('groups/1/boards/2 ' )
103- ->will ( $ this -> returnValue ( $ expectedBool ))
103+ ->willReturn ( $ expectedBool );
104104 ;
105105
106106 $ this ->assertEquals ($ expectedBool , $ api ->remove (1 , 2 ));
@@ -135,7 +135,7 @@ public function shouldGetAllLists(): void
135135 $ api ->expects ($ this ->once ())
136136 ->method ('get ' )
137137 ->with ('groups/1/boards/2/lists ' )
138- ->will ( $ this -> returnValue ( $ expectedArray) )
138+ ->willReturn ( $ expectedArray )
139139 ;
140140
141141 $ this ->assertEquals ($ expectedArray , $ api ->allLists (1 , 2 ));
@@ -162,7 +162,7 @@ public function shouldGetList(): void
162162 $ api ->expects ($ this ->once ())
163163 ->method ('get ' )
164164 ->with ('groups/1/boards/2/lists/3 ' )
165- ->will ( $ this -> returnValue ( $ expectedArray) )
165+ ->willReturn ( $ expectedArray )
166166 ;
167167
168168 $ this ->assertEquals ($ expectedArray , $ api ->showList (1 , 2 , 3 ));
@@ -189,7 +189,7 @@ public function shouldCreateList(): void
189189 $ api ->expects ($ this ->once ())
190190 ->method ('post ' )
191191 ->with ('groups/1/boards/2/lists ' , ['label_id ' => 4 ])
192- ->will ( $ this -> returnValue ( $ expectedArray) )
192+ ->willReturn ( $ expectedArray )
193193 ;
194194
195195 $ this ->assertEquals ($ expectedArray , $ api ->createList (1 , 2 , 4 ));
@@ -216,7 +216,7 @@ public function shouldUpdateList(): void
216216 $ api ->expects ($ this ->once ())
217217 ->method ('put ' )
218218 ->with ('groups/5/boards/2/lists/3 ' , ['position ' => 1 ])
219- ->will ( $ this -> returnValue ( $ expectedArray) )
219+ ->willReturn ( $ expectedArray )
220220 ;
221221
222222 $ this ->assertEquals ($ expectedArray , $ api ->updateList (5 , 2 , 3 , 1 ));
@@ -233,7 +233,7 @@ public function shouldDeleteList(): void
233233 $ api ->expects ($ this ->once ())
234234 ->method ('delete ' )
235235 ->with ('groups/1/boards/2/lists/3 ' )
236- ->will ( $ this -> returnValue ( $ expectedBool ))
236+ ->willReturn ( $ expectedBool );
237237 ;
238238
239239 $ this ->assertEquals ($ expectedBool , $ api ->deleteList (1 , 2 , 3 ));
0 commit comments