/** * Location parts should be the product's ID and slug. */ public function testGivesProductIdAndSlugForLocationParts() { $id = $this->generator()->anyInteger(); $this->mockModelAttribute('id', $id); $slug = $this->generator()->anySlug(); $this->mockModelAttribute('slug', $slug); $this->assertEquals(['ID' => $id, 'slug' => $slug], $this->productPresenter->locationParts()); }