/** * Receipt DELETE test * * @return void */ public function testDELETEReceipt() { $receipt = Receipt::first(); $endpoint = $this->getEndpointWithToken($this->endpoint . '/' . $receipt->id); $this->call('DELETE', $endpoint); //fetch inserted receipt $deleted_receipt = Receipt::find($receipt->id); $this->assertNull($deleted_receipt); }