/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { return Response::json($this->repository->getAll()); }
public function test_get_all() { echo "\n" . get_class($this->repo) . "\n"; $products = $this->repo->getAll(); $this->assertTrue(is_array($products)); }