Example #1
0
 /**
  * @covers FireflyIII\Repositories\Bill\BillRepository::destroy
  */
 public function testDestroy()
 {
     $bill = FactoryMuffin::create('FireflyIII\\Models\\Bill');
     $accountId = $bill->id;
     $this->object->destroy($bill);
     // cannot find bill:
     $this->assertCount(0, Bill::whereId($accountId)->whereNotNull('deleted_at')->get());
 }