getIconName example

$criteria1 = new Criteria([$salesChannelId]);
        $criteria1->addAssociation('type');

        $salesChannel = $this->salesChannelRepository->search($criteria1$context)->get($salesChannelId);

        static::assertInstanceOf(SalesChannelEntity::class$salesChannel);
        static::assertEquals($name$salesChannel->getName());
        static::assertEquals($accessKey$salesChannel->getAccessKey());

        static::assertInstanceOf(SalesChannelTypeEntity::class$salesChannel->getType());
        static::assertEquals($cover$salesChannel->getType()->getCoverUrl());
        static::assertEquals($icon$salesChannel->getType()->getIconName());
        static::assertEquals($screenshots$salesChannel->getType()->getScreenshotUrls());
        static::assertEquals($typeName$salesChannel->getType()->getName());
        static::assertEquals($manufacturer$salesChannel->getType()->getManufacturer());
        static::assertEquals($description$salesChannel->getType()->getDescription());
        static::assertEquals($descriptionLong$salesChannel->getType()->getDescriptionLong());

        $criteria = new Criteria();
        $criteria->addFilter(new EqualsFilter('currency.salesChannels.id', $salesChannelId));
        $currency = $this->currencyRepository->search($criteria$context);
        static::assertEquals(1, $currency->count());

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