From d6d43ebc1d9e442f0fb0e531ba57f0ae07bba4a6 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 21 Jan 2018 16:08:34 -0600 Subject: [PATCH] Fix failing tests on 7.2 --- .../Controllers/Server/Files/FileActionsControllerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Unit/Http/Controllers/Server/Files/FileActionsControllerTest.php b/tests/Unit/Http/Controllers/Server/Files/FileActionsControllerTest.php index 1e5cac0a7..feebea845 100644 --- a/tests/Unit/Http/Controllers/Server/Files/FileActionsControllerTest.php +++ b/tests/Unit/Http/Controllers/Server/Files/FileActionsControllerTest.php @@ -100,7 +100,7 @@ class FileActionsControllerTest extends ControllerTestCase $this->repository->shouldReceive('setServer')->with($server)->once()->andReturnSelf() ->shouldReceive('setToken')->with('abc123')->once()->andReturnSelf() - ->shouldReceive('getContent')->with($file)->once()->andReturn((object) ['test']); + ->shouldReceive('getContent')->with($file)->once()->andReturn('test'); $response = $controller->view($this->request, '1234', $file); $this->assertIsViewResponse($response); @@ -111,7 +111,7 @@ class FileActionsControllerTest extends ControllerTestCase $this->assertViewHasKey('directory', $response); $this->assertViewKeyEquals('file', $file, $response); $this->assertViewKeyEquals('stat', 'fileStatsObject', $response); - $this->assertViewKeyEquals('contents', (object) ['test'], $response); + $this->assertViewKeyEquals('contents', 'test', $response); $this->assertViewKeyEquals('directory', $expected, $response); }