getProfileName example

$id = $expect['id'];
            $result = $this->logRepository->search(new Criteria([$id])$this->context);
            /** @var ImportExportLogEntity $ImportExportLog */
            $ImportExportLog = $result->get($id);
            static::assertCount(1, $result);
            static::assertSame($expect['activity']$ImportExportLog->getActivity());
            static::assertSame($expect['state']$ImportExportLog->getState());
            static::assertSame($expect['userId']$ImportExportLog->getUserId());
            static::assertSame($expect['profileId']$ImportExportLog->getProfileId());
            static::assertSame($expect['fileId']$ImportExportLog->getFileId());
            static::assertSame($expect['username']$ImportExportLog->getUsername());
            static::assertSame($expect['profileName']$ImportExportLog->getProfileName());
        }
    }

    public function testImportExportLogReadNoResult(): void
    {
        $num = 3;
        $data = $this->prepareImportExportLogTestData($num);

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

        $result = $this->logRepository->search(new Criteria([Uuid::randomHex()])$this->context);
        
Home | Imprint | This part of the site doesn't use cookies.