public function testGetByIds() { $cat1 = $this->saveTestCategory('Test Category'); $cat2 = $this->saveTestCategory('Test Category 2'); $this->assertCount(0, $this->repository->getByIds([99])); $this->assertCount(1, $this->repository->getByIds([$cat1->id, 99])); $this->assertCount(2, $this->repository->getByIds([$cat1->id, $cat2->id])); }