Fix tests

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-05-06 09:34:38 +02:00
parent 611f9ff6a5
commit fc5c34897e
7 changed files with 15 additions and 13 deletions

View File

@@ -36,8 +36,8 @@ class StackApiControllerTest extends \Test\TestCase {
private $controller;
private $boardService;
private $stackService;
private $exampleStack;
private $exampleBoard;
private $exampleStack = [];
private $exampleBoard = [];
public function setUp(): void {
parent::setUp();
@@ -45,13 +45,13 @@ class StackApiControllerTest extends \Test\TestCase {
$this->boardService = $this->createMock(BoardService::class);
$this->stackService = $this->createMock(StackService::class);
$this->exampleBoard['boardId'] = '89';
$this->exampleStack['id'] = 345;
$this->exampleStack['boardId'] = $this->exampleBoard['boardId'];
$this->exampleStack['order'] = 0;
$this->exampleStack['title'] = 'Example Stack From API';
$this->exampleBoard['boardId'] = '89';
$this->controller = new StackApiController(
$this->appName,
$this->request,