@@ -86,9 +86,9 @@ public function testPrepareSuccess(): void {
8686 ->with ('you ' )
8787 ->willReturn ($ userFolder );
8888 $ userFolder ->expects ($ this ->once ())
89- ->method ('getById ' )
89+ ->method ('getFirstNodeById ' )
9090 ->with ('678 ' )
91- ->willReturn ([ $ node] );
91+ ->willReturn ($ node );
9292
9393 $ this ->notification ->expects ($ this ->exactly (2 ))
9494 ->method ('getUser ' )
@@ -202,9 +202,9 @@ public function testPrepareSuccessDeletedUser(): void {
202202 ->with ('you ' )
203203 ->willReturn ($ userFolder );
204204 $ userFolder ->expects ($ this ->once ())
205- ->method ('getById ' )
205+ ->method ('getFirstNodeById ' )
206206 ->with ('678 ' )
207- ->willReturn ([ $ node] );
207+ ->willReturn ($ node );
208208
209209 $ this ->notification ->expects ($ this ->exactly (2 ))
210210 ->method ('getUser ' )
@@ -301,7 +301,7 @@ public function testPrepareDifferentApp(): void {
301301
302302 $ this ->folder
303303 ->expects ($ this ->never ())
304- ->method ('getById ' );
304+ ->method ('getFirstNodeById ' );
305305
306306 $ this ->notification
307307 ->expects ($ this ->once ())
@@ -338,7 +338,7 @@ public function testPrepareNotFound(): void {
338338
339339 $ this ->folder
340340 ->expects ($ this ->never ())
341- ->method ('getById ' );
341+ ->method ('getFirstNodeById ' );
342342
343343 $ this ->notification
344344 ->expects ($ this ->once ())
@@ -378,7 +378,7 @@ public function testPrepareDifferentSubject(): void {
378378
379379 $ this ->folder
380380 ->expects ($ this ->never ())
381- ->method ('getById ' );
381+ ->method ('getFirstNodeById ' );
382382
383383 $ this ->notification
384384 ->expects ($ this ->once ())
@@ -435,7 +435,7 @@ public function testPrepareNotFiles(): void {
435435
436436 $ this ->folder
437437 ->expects ($ this ->never ())
438- ->method ('getById ' );
438+ ->method ('getFirstNodeById ' );
439439
440440 $ this ->notification
441441 ->expects ($ this ->once ())
@@ -497,9 +497,9 @@ public function testPrepareUnresolvableFileID(): void {
497497 ->with ('you ' )
498498 ->willReturn ($ userFolder );
499499 $ userFolder ->expects ($ this ->once ())
500- ->method ('getById ' )
500+ ->method ('getFirstNodeById ' )
501501 ->with ('678 ' )
502- ->willReturn ([] );
502+ ->willReturn (null );
503503
504504 $ this ->notification ->expects ($ this ->once ())
505505 ->method ('getUser ' )
0 commit comments