Add frontend for assigning groups to cards

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-03-22 14:50:02 +01:00
parent 3c6a177da9
commit d6eac1b11a
12 changed files with 198 additions and 160 deletions

View File

@@ -22,6 +22,7 @@
*/
namespace OCA\Deck\Controller;
use OCA\Deck\Service\AssignmentService;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\DataResponse;
use OCP\IRequest;
@@ -37,12 +38,14 @@ class CardApiControllerTest extends \Test\TestCase {
private $userId = 'admin';
private $cardExample;
private $stackExample;
private $assignmentService;
public function setUp(): void {
parent::setUp();
$this->request = $this->createMock(IRequest::class);
$this->cardService = $this->createMock(CardService::class);
$this->assignmentService = $this->createMock(AssignmentService::class);
$this->cardExample['id'] = 1;
$this->stackExample['id'] = 1;
@@ -51,6 +54,7 @@ class CardApiControllerTest extends \Test\TestCase {
$appName = 'deck',
$this->request,
$this->cardService,
$this->assignmentService,
$this->userId
);
}