Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_texteditor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-10-05 13:57:30 +0300
committerThomas Müller <thomas.mueller@tmit.eu>2015-10-05 13:58:25 +0300
commit789040885fafce5731eeb191b5b229cc052573c3 (patch)
tree33c853490aa9f73d351befd77a3976df87f61531 /tests
parent7dc1d80fe40835f404dbb51875bca3ed1fe1b162 (diff)
Fix variable names
Diffstat (limited to 'tests')
-rw-r--r--tests/controller/filehandlingcontrollertest.php14
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();