cleanUpSalesChannels example

private const MAX_RESULTS = 7;

    private Connection $connection;

    private array $languages;

    protected function setUp(): void
    {
        $this->connection = $this->getContainer()
            ->get(Connection::class);

        $this->cleanUpSalesChannels();

        $this->languages = $this->fetchLanguages();

        $this->createSalesChannels();
        $this->createUserForEachLanguage();
    }

    public function testMigrationCopiesSalesChannelIdsIntoUserConfig(): void
    {
        $migration = $this->getMigration();
        $migration->update($this->connection);

        
Home | Imprint | This part of the site doesn't use cookies.