entityManager = $this->getContainer()->get('doctrine.orm.entity_manager'); $this->repository = $this->getContainer()->get('sylius.repository.taxon'); } public function test_it_finds_vendor_products(): void { $this->loadFixturesFromFile('TaxonRepositoryTest/test_it_finds_vendor_taxons.yaml'); $taxon = $this->repository->findForVendorPage('slug', 'en_US'); $this->assertSame('slug', $taxon->getSlug()); } public function test_it_finds_null_wuth_incorrect_slug(): void { $this->loadFixturesFromFile('TaxonRepositoryTest/test_it_finds_vendor_taxons.yaml'); $taxon = $this->repository->findForVendorPage('badSlug', 'en_US'); $this->assertNull($taxon); } }