a flock of bugfixes
This commit is contained in:
parent
8ab469e017
commit
b0cb0db558
2 changed files with 5 additions and 9 deletions
|
@ -153,12 +153,12 @@ class ItemTest extends TestCase
|
|||
$event = Event::create(['slug'=>'EVENT','name'=>'Event']);
|
||||
$box = Container::create(['name'=>'BOX']);
|
||||
|
||||
$item1 = Item::create(['cid'=>$box->cid, 'eid' => $event->eid, 'wann'=>'', 'wo'=>'','description'=>'1']);
|
||||
Item::create(['cid'=>$box->cid, 'eid' => $event->eid, 'wann'=>'', 'wo'=>'','description'=>'1']);
|
||||
$item2 = Item::create(['cid'=>$box->cid, 'eid' => $event->eid, 'wann'=>'', 'wo'=>'','description'=>'2']);
|
||||
|
||||
$this->assertEquals(2, count(Item::all()));
|
||||
|
||||
$this->delete('/1/EVENT/item/'.$item1->uid);
|
||||
$this->delete('/1/EVENT/item/'.$item2->uid);
|
||||
|
||||
$this->assertResponseOk();
|
||||
$this->assertEquals(1, count(Item::all()));
|
||||
|
@ -168,10 +168,6 @@ class ItemTest extends TestCase
|
|||
$this->assertEquals(3, $item3['uid']);
|
||||
$this->assertEquals(2, count(Item::all()));
|
||||
|
||||
$this->delete('/1/EVENT/item/'.$item2->uid);
|
||||
|
||||
$this->assertResponseOk();
|
||||
$this->assertEquals(1, count(Item::all()));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue