@@ -71,15 +71,12 @@ public function testSavePasteWithSuccessResponse(): void
7171 $ this ->appUtilMock ->method ('getHttpHost ' )->willReturn ('localhost ' );
7272
7373 // expect entity manager to call persist and flush
74- $ this ->entityManagerMock ->expects ($ this ->once ())
75- ->method ('persist ' )
74+ $ this ->entityManagerMock ->expects ($ this ->once ())->method ('persist ' )
7675 ->with ($ this ->isInstanceOf (Paste::class));
77- $ this ->entityManagerMock ->expects ($ this ->once ())
78- ->method ('flush ' );
76+ $ this ->entityManagerMock ->expects ($ this ->once ())->method ('flush ' );
7977
8078 // expect log manager to be called upon successful save
81- $ this ->logManagerMock ->expects ($ this ->once ())
82- ->method ('externalLog ' );
79+ $ this ->logManagerMock ->expects ($ this ->once ())->method ('externalLog ' );
8380
8481 // call tested method
8582 $ this ->pasteManager ->savePaste ('sample-token ' , 'This is a test paste. ' );
@@ -98,8 +95,7 @@ public function testSavePasteWithEmptyContent(): void
9895 $ this ->appUtilMock ->method ('isEncryptionMode ' )->willReturn (false );
9996
10097 // expect error manager call
101- $ this ->errorManagerMock ->expects ($ this ->once ())
102- ->method ('handleError ' )
98+ $ this ->errorManagerMock ->expects ($ this ->once ())->method ('handleError ' )
10399 ->with ('paste content is empty ' , Response::HTTP_BAD_REQUEST );
104100
105101 // call tested method
@@ -119,8 +115,7 @@ public function testSavePasteWithLongContent(): void
119115 $ this ->appUtilMock ->method ('isEncryptionMode ' )->willReturn (false );
120116
121117 // expect error manager call
122- $ this ->errorManagerMock ->expects ($ this ->once ())
123- ->method ('handleError ' )
118+ $ this ->errorManagerMock ->expects ($ this ->once ())->method ('handleError ' )
124119 ->with ('paste content is too long ' , Response::HTTP_BAD_REQUEST );
125120
126121 // call tested method
0 commit comments