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:
parent
0b00d770fe
commit
8d93a0db8a
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue