getSystemDefault example

$num = 5;
        $data = $this->prepareImportExportProfileTestData($num);

        $this->repository->create(array_values($data)$this->context);

        foreach ($data as $expect) {
            $id = $expect['id'];
            /** @var ImportExportProfileEntity $importExportProfile */
            $importExportProfile = $this->repository->search(new Criteria([$id])$this->context)->get($id);
            static::assertEquals($expect['name']$importExportProfile->getName());
            static::assertEquals($expect['label']$importExportProfile->getLabel());
            static::assertEquals($expect['systemDefault']$importExportProfile->getSystemDefault());
            static::assertEquals($expect['sourceEntity']$importExportProfile->getSourceEntity());
            static::assertEquals($expect['fileType']$importExportProfile->getFileType());
            static::assertEquals($expect['delimiter']$importExportProfile->getDelimiter());
            static::assertEquals($expect['enclosure']$importExportProfile->getEnclosure());
            static::assertEquals($expect['mapping']$importExportProfile->getMapping());
        }
    }

    public function testImportExportProfileReadNoResult(): void
    {
        $num = 3;
        
public function testMailHeaderFooterRead(): void
    {
        $num = 10;
        $data = $this->prepareHeaderFooterTestData($num);

        $this->repository->create(array_values($data)$this->context);

        foreach ($data as $expect) {
            $id = $expect['id'];
            $mailHeaderFooter = $this->repository->search(new Criteria([$id])$this->context)->get($id);
            static::assertInstanceOf(MailHeaderFooterEntity::class$mailHeaderFooter);
            static::assertEquals($expect['systemDefault']$mailHeaderFooter->getSystemDefault());
            static::assertEquals($expect['name']$mailHeaderFooter->getName());
            static::assertEquals($expect['description']$mailHeaderFooter->getDescription());
            static::assertEquals($expect['headerHtml']$mailHeaderFooter->getHeaderHtml());
            static::assertEquals($expect['headerPlain']$mailHeaderFooter->getHeaderPlain());
            static::assertEquals($expect['footerHtml']$mailHeaderFooter->getFooterHtml());
            static::assertEquals($expect['footerPlain']$mailHeaderFooter->getFooterPlain());
        }
    }

    /** * Test UPDATE */
Home | Imprint | This part of the site doesn't use cookies.