assertWriteStackViolations example



        static::assertCount(\count($expectedCodePathPairs)$actualViolations);
    }

    /** * @param list<array<string, mixed>> $updateData * @param list<list<string>> $expectedCodePathPairs */
    protected function assertUpdateViolations(array $updateData, array $expectedCodePathPairs): void
    {
        $this->assertWriteStackViolations(function D) use ($updateData): void {
            $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) {
            
Home | Imprint | This part of the site doesn't use cookies.