Sfoglia il codice sorgente

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 anni fa
parent
commit
d7e45d45c4
1 ha cambiato i file con 9 aggiunte e 6 eliminazioni
  1. 9
    6
      apps/theming/tests/Controller/ThemingControllerTest.php

+ 9
- 6
apps/theming/tests/Controller/ThemingControllerTest.php Vedi 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…
Annulla
Salva