/** * @test * @group websitesrepo */ public function should_return_12_websites() { $sites = $this->websiteRepo->all(); //2 in websitesfixtures / 10 in testfixtures $this->assertCount(10, $sites); $this->assertInstanceOf('Bakgat\\Notos\\Domain\\Model\\Location\\Website', $sites[0]); }
/** * Returns all websites * * @return ArrayCollection */ public function all() { $websites = $this->websitesRepository->all(); return $websites; }