@@ -42,12 +42,12 @@ public function setUp(): void
42
42
$ this ->relationship ->expects ($ this ->any ())
43
43
->method ('has ' )
44
44
->with ($ this ->equalTo ('data ' ))
45
- ->will ( $ this -> returnValue ( true ) );
45
+ ->willReturn ( true );
46
46
47
47
$ this ->relationship ->expects ($ this ->any ())
48
48
->method ('get ' )
49
49
->with ($ this ->equalTo ('data ' ))
50
- ->will ( $ this -> returnValue ( $ collection) );
50
+ ->willReturn ( $ collection );
51
51
}
52
52
53
53
/**
@@ -136,7 +136,7 @@ public function testPaginationNotParsedIfRelationshipDataNotExists(): void
136
136
$ relationship ->expects ($ this ->any ())
137
137
->method ('has ' )
138
138
->with ($ this ->equalTo ('data ' ))
139
- ->will ( $ this -> returnValue ( false ) );
139
+ ->willReturn ( false );
140
140
141
141
$ link = new RelationshipLink ($ object , $ this ->manager , $ relationship );
142
142
@@ -173,15 +173,15 @@ public function testPaginationNotParsedIfRelationshipIdentifierCollectionNotExis
173
173
$ relationship ->expects ($ this ->any ())
174
174
->method ('has ' )
175
175
->with ($ this ->equalTo ('data ' ))
176
- ->will ( $ this -> returnValue ( true ) );
176
+ ->willReturn ( true );
177
177
178
178
// Mock identifier item
179
179
$ data = $ this ->createMock (Accessable::class);
180
180
181
181
$ relationship ->expects ($ this ->any ())
182
182
->method ('get ' )
183
183
->with ($ this ->equalTo ('data ' ))
184
- ->will ( $ this -> returnValue ( $ data) );
184
+ ->willReturn ( $ data );
185
185
186
186
$ link = new RelationshipLink ($ object , $ this ->manager , $ relationship );
187
187
0 commit comments