Allow force delete to have a clean test env after creating boards
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -170,4 +170,4 @@ matrix:
|
||||
- TESTS: jsbuild
|
||||
- TESTS: integration
|
||||
|
||||
branches: [ master, stable* ]
|
||||
|
||||
|
||||
@@ -176,6 +176,12 @@ class BoardService {
|
||||
$this->boardMapper->update($board);
|
||||
}
|
||||
|
||||
public function deleteForce($id) {
|
||||
$this->permissionService->checkPermission($this->boardMapper, $id, Acl::PERMISSION_READ);
|
||||
$board = $this->find($id);
|
||||
return $this->boardMapper->delete($board);
|
||||
}
|
||||
|
||||
public function update($id, $title, $color, $archived) {
|
||||
$this->permissionService->checkPermission($this->boardMapper, $id, Acl::PERMISSION_MANAGE);
|
||||
$board = $this->find($id);
|
||||
|
||||
@@ -77,7 +77,7 @@ class BoardDatabaseTest extends \Test\TestCase
|
||||
$this->assertEquals($actual->getTitle(), $board->getTitle());
|
||||
$this->assertEquals($actual->getColor(), $board->getColor());
|
||||
$this->assertEquals($actual->getOwner(), $board->getOwner());
|
||||
$this->boardService->delete($id);
|
||||
$this->boardService->deleteForce($id);
|
||||
}
|
||||
|
||||
public function tearDown() {
|
||||
|
||||
Reference in New Issue
Block a user