entityManager = $this->getContainer()->get('doctrine.orm.entity_manager'); $this->repository = $this->getContainer()->get('sylius.repository.channel'); } public function test_it_finds_all_enabled_channels(): void { $this->loadFixturesFromFile('ChannelRepositoryTest/test_it_finds_all_enabled_channels.yaml'); $result = $this->repository->findAllEnabled(); self::assertCount(2, $result); } public function test_it_finds_enabled_channel_by_code(): void { $this->loadFixturesFromFile('ChannelRepositoryTest/test_it_finds_all_enabled_channels.yaml'); $result = $this->repository->findOneEnabledByCode('US'); self::assertNotNull($result); } }