Skip to content

Commit d6d43eb

Browse files
committed
Fix failing tests on 7.2
1 parent c369151 commit d6d43eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Unit/Http/Controllers/Server/Files/FileActionsControllerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function testUpdateController($file, $expected)
100100

101101
$this->repository->shouldReceive('setServer')->with($server)->once()->andReturnSelf()
102102
->shouldReceive('setToken')->with('abc123')->once()->andReturnSelf()
103-
->shouldReceive('getContent')->with($file)->once()->andReturn((object) ['test']);
103+
->shouldReceive('getContent')->with($file)->once()->andReturn('test');
104104

105105
$response = $controller->view($this->request, '1234', $file);
106106
$this->assertIsViewResponse($response);
@@ -111,7 +111,7 @@ public function testUpdateController($file, $expected)
111111
$this->assertViewHasKey('directory', $response);
112112
$this->assertViewKeyEquals('file', $file, $response);
113113
$this->assertViewKeyEquals('stat', 'fileStatsObject', $response);
114-
$this->assertViewKeyEquals('contents', (object) ['test'], $response);
114+
$this->assertViewKeyEquals('contents', 'test', $response);
115115
$this->assertViewKeyEquals('directory', $expected, $response);
116116
}
117117

0 commit comments

Comments
 (0)