Add stack sorting functionality

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2017-05-23 18:09:42 +02:00
parent fbc12ae8f7
commit b6d94ec9ff
9 changed files with 141 additions and 9 deletions

View File

@@ -84,6 +84,14 @@ class StackControllerTest extends \PHPUnit_Framework_TestCase {
$this->assertEquals(1, $this->controller->update(1, 2, 3, 4));
}
public function testReorder() {
$this->stackService->expects($this->once())
->method('reorder')
->with(1, 2)
->willReturn(1);
$this->assertEquals(1, $this->controller->reorder(1, 2));
}
public function testDelete() {
$this->stackService->expects($this->once())
->method('delete')