/** * @expectedException \Illuminate\Database\Eloquent\ModelNotFoundException */ public function testFindingAndFailing() { User::findOrFail(0); }