getSalesChannelFixture example

$shipping = $this->getValidShippingMethodId();
        $category = $this->getValidCategoryId();
        $country = $this->getValidCountryId(null);

        $languages = [
            $this->getLanguageIds($this->connection, 'de-DE')[0],
            Defaults::LANGUAGE_SYSTEM,
        ];

        $insert = [];
        foreach ($names as $name) {
            $insert[] = $this->getSalesChannelFixture([
                'paymentMethodId' => $payment,
                'shippingMethodId' => $shipping,
                'navigationCategoryId' => $category,
                'countryId' => $country,
                'shippingMethods' => [['id' => $shipping]],
                'paymentMethods' => [['id' => $payment]],
                'countries' => [['id' => $country]],
                'name' => $name . ' - english',
                'translations' => [
                    $languages[0] => [
                        'name' => $name . ' - german',
                    ],
Home | Imprint | This part of the site doesn't use cookies.