Skip to content
Snippets Groups Projects
Commit d7e45d45 authored by Daniel Calviño Sánchez's avatar Daniel Calviño Sánchez
Browse files

Unify DataResponse format with its uses in the rest of the file

parent 0c8627a7
No related branches found
No related tags found
No related merge requests found
...@@ -137,12 +137,15 @@ class ThemingControllerTest extends TestCase { ...@@ -137,12 +137,15 @@ class ThemingControllerTest extends TestCase {
->with($message) ->with($message)
->willReturn($message); ->willReturn($message);
$expected = new DataResponse([ $expected = new DataResponse(
'data' => [ [
'message' => $message, 'data' =>
], [
'status' => $status, 'message' => $message,
]); ],
'status' => $status,
]
);
$this->assertEquals($expected, $this->themingController->updateStylesheet($setting, $value)); $this->assertEquals($expected, $this->themingController->updateStylesheet($setting, $value));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment