Browse Source

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

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
tags/v13.0.0beta1
Daniel Calviño Sánchez 6 years ago
parent
commit
d7e45d45c4
1 changed files with 9 additions and 6 deletions
  1. 9
    6
      apps/theming/tests/Controller/ThemingControllerTest.php

+ 9
- 6
apps/theming/tests/Controller/ThemingControllerTest.php View File

@@ -137,12 +137,15 @@ class ThemingControllerTest extends TestCase {
->with($message)
->willReturn($message);

$expected = new DataResponse([
'data' => [
'message' => $message,
],
'status' => $status,
]);
$expected = new DataResponse(
[
'data' =>
[
'message' => $message,
],
'status' => $status,
]
);
$this->assertEquals($expected, $this->themingController->updateStylesheet($setting, $value));
}


Loading…
Cancel
Save