getDelimiter example

$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;
        $data = $this->prepareImportExportProfileTestData($num);

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

        


    /** * @param Config $config * * @return Config */
    private function getConfig(ImportExportProfileEntity $profileEntity, array $config): array
    {
        $parameters = $profileEntity->getConfig();

        $parameters['delimiter'] = $profileEntity->getDelimiter();
        $parameters['enclosure'] = $profileEntity->getEnclosure();
        $parameters['sourceEntity'] = $profileEntity->getSourceEntity();
        $parameters['fileType'] = $profileEntity->getFileType();
        $parameters['profileName'] = $profileEntity->getName();

        return [
            'mapping' => $config['mapping'] ?? $profileEntity->getMapping(),
            'updateBy' => $config['updateBy'] ?? $profileEntity->getUpdateBy(),
            'parameters' => array_merge($parameters$config['parameters'] ?? []),
        ];
    }
}
Home | Imprint | This part of the site doesn't use cookies.