Преглед на файлове

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 години
родител
ревизия
d7e45d45c4
променени са 1 файла, в които са добавени 9 реда и са изтрити 6 реда
  1. 9
    6
      apps/theming/tests/Controller/ThemingControllerTest.php

+ 9
- 6
apps/theming/tests/Controller/ThemingControllerTest.php Целия файл

@@ -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…
Отказ
Запис