/** * pastebin/all API. * * @Any("all", as="api.pastebin.all") * * @return \Illuminate\Http\JsonResponse */ public function anyAll() { try { $all = $this->pasteBin->all(); return $this->onSuccess($all); } catch (Exception $e) { return $this->onError($e); } }
public function testAll() { $this->get('/api/pastebin/all')->seeJsonEquals($this->pasteBin->all()->toArray())->assertResponseStatus(200); }