factory()->hasFoods(2)->create(); $this->getRelatedData($record, 'foods'); } public function testCanIncludeRelatedFoods(): void { $record = $this->factory()->hasFoods(2)->create(); $this->getRelatedData($record, 'foods'); } public function testCanGetRelatedRecipes(): void { $record = $this->factory()->hasRecipes(2)->create(); $this->getRelatedData($record, 'recipes'); } public function testCanIncludeRelatedRecipes(): void { $record = $this->factory()->hasRecipes(2)->create(); $this->getRelatedData($record, 'recipes'); } }