@@ -122,7 +122,6 @@ protected function setUp()
122
122
->method ('getMessageManager ' )
123
123
->willReturn ($ this ->messageManagerMock );
124
124
125
-
126
125
$ this ->objectManagerHelper = new ObjectManagerHelper ($ this );
127
126
$ this ->deleteControllerMock = $ this ->objectManagerHelper ->getObject (
128
127
Delete::class,
@@ -143,7 +142,9 @@ public function testExecuteSuccess()
143
142
->with ('filename ' )
144
143
->willReturn ('sampleFile ' );
145
144
146
- $ this ->fileSystemMock ->expects ($ this ->once ())->method ('getDirectoryRead ' )->will ($ this ->returnValue ($ this ->directoryMock ));
145
+ $ this ->fileSystemMock ->expects ($ this ->once ())
146
+ ->method ('getDirectoryRead ' )
147
+ ->will ($ this ->returnValue ($ this ->directoryMock ));
147
148
$ this ->directoryMock ->expects ($ this ->once ())->method ('isFile ' )->willReturn (true );
148
149
$ this ->fileMock ->expects ($ this ->once ())->method ('deleteFile ' )->willReturn (true );
149
150
$ this ->messageManagerMock ->expects ($ this ->once ())->method ('addSuccessMessage ' );
@@ -160,7 +161,9 @@ public function testExecuteFileDoesntExists()
160
161
->with ('filename ' )
161
162
->willReturn ('sampleFile ' );
162
163
163
- $ this ->fileSystemMock ->expects ($ this ->once ())->method ('getDirectoryRead ' )->will ($ this ->returnValue ($ this ->directoryMock ));
164
+ $ this ->fileSystemMock ->expects ($ this ->once ())
165
+ ->method ('getDirectoryRead ' )
166
+ ->will ($ this ->returnValue ($ this ->directoryMock ));
164
167
$ this ->directoryMock ->expects ($ this ->once ())->method ('isFile ' )->willReturn (false );
165
168
$ this ->messageManagerMock ->expects ($ this ->once ())->method ('addErrorMessage ' );
166
169
0 commit comments