/** * Should be able to load all tags. */ public function testLoadAll() { $tags = new Collection(); $this->tagModel->shouldReceive('orderBy->with->get')->andReturn($tags); $this->assertSame($tags, $this->tagRepository->loadAll()); }
/** * @return Tag\Tag[]|Collection */ public function loadAllTags() : Collection { return $this->tagRepository->loadAll(); }
/** * @return \Illuminate\Contracts\View\View */ public function index() { $tags = $this->tagRepository->loadAll(); $newTag = new Tag(); return $this->webUi->view('catalogue::staff.tags.index', compact('tags', 'newTag')); }