Add more unit testing

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2017-05-29 00:08:22 +02:00
parent 57f74c98db
commit 19a90809f9
12 changed files with 317 additions and 10 deletions

View File

@@ -49,6 +49,7 @@ class StackServiceTest extends TestCase {
private $boardService;
public function setUp() {
parent::setUp();
$this->stackMapper = $this->getMockBuilder(StackMapper::class)
->disableOriginalConstructor()->getMock();
$this->cardMapper = $this->getMockBuilder(CardMapper::class)
@@ -165,6 +166,9 @@ class StackServiceTest extends TestCase {
$this->assertEquals($stack, $result);
}
/**
* @group DB
*/
public function testReorder() {
$this->permissionService->expects($this->once())->method('checkPermission');
$a = $this->createStack(1, 0);