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

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
Daniel Calviño Sánchez 2017-08-10 12:31:30 +02:00
parent 0c8627a7ee
commit d7e45d45c4
1 changed files with 9 additions and 6 deletions

View File

@ -137,12 +137,15 @@ class ThemingControllerTest extends TestCase {
->with($message)
->willReturn($message);
$expected = new DataResponse([
'data' => [
$expected = new DataResponse(
[
'data' =>
[
'message' => $message,
],
'status' => $status,
]);
]
);
$this->assertEquals($expected, $this->themingController->updateStylesheet($setting, $value));
}