diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/controller/filehandlingcontrollertest.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/controller/filehandlingcontrollertest.php b/tests/controller/filehandlingcontrollertest.php index 59f75a3..0fa689a 100644 --- a/tests/controller/filehandlingcontrollertest.php +++ b/tests/controller/filehandlingcontrollertest.php @@ -138,18 +138,18 @@ class FileHandlingControllerTest extends TestCase { * @dataProvider dataTestSave * * @param $path - * @param $filecontents - * @param $mtime - * @param $filemtime + * @param $fileContents + * @param $mTime + * @param $fileMTime * @param $isUpdatable * @param $expectedStatus * @param $expectedMessage */ - public function testSave($path, $filecontents, $mtime, $filemtime, $isUpdatable, $expectedStatus, $expectedMessage) { + public function testSave($path, $fileContents, $mTime, $fileMTime, $isUpdatable, $expectedStatus, $expectedMessage) { $this->viewMock->expects($this->any()) ->method('filemtime') - ->willReturn($filemtime); + ->willReturn($fileMTime); $this->viewMock->expects($this->any()) ->method('isUpdatable') @@ -157,12 +157,12 @@ class FileHandlingControllerTest extends TestCase { if ($expectedStatus === 200) { $this->viewMock->expects($this->once()) - ->method('file_put_contents')->with($path, $filecontents); + ->method('file_put_contents')->with($path, $fileContents); } else { $this->viewMock->expects($this->never())->method(('file_put_contents')); } - $result = $this->controller->save($path, $filecontents, $mtime); + $result = $this->controller->save($path, $fileContents, $mTime); $status = $result->getStatus(); $data = $result->getData(); |