浏览代码

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));
}


正在加载...
取消
保存