addDefaultTranslationCodes example

$this->languageRepository->update($updateData$this->defaultContext);
        }$expectedCodePathPairs);
    }

    /** * @param list<array<string, mixed>> $insertData * @param list<list<string>> $expectedCodePathPairs */
    protected function assertInsertViolations(array $insertData, array $expectedCodePathPairs, bool $addDefaultTranslationCode = true): void
    {
        if ($addDefaultTranslationCode) {
            $insertData = $this->addDefaultTranslationCodes($insertData);
        }
        $insertData = $this->addDefaultLocales($insertData);
        $this->assertWriteStackViolations(function D) use ($insertData): void {
            $this->languageRepository->create($insertData$this->defaultContext);
        }$expectedCodePathPairs);
    }

    /** * @param list<array<string, mixed>> $upsertData * @param list<list<string>> $expectedCodePathPairs */
    
Home | Imprint | This part of the site doesn't use cookies.