eZ\Publish\Core\Repository\Tests\Service\Mock\ContentTest::testUpdateContentThrowsContentFieldValidationException PHP Method

testUpdateContentThrowsContentFieldValidationException() public method

Test for the updateContent() method.
public testUpdateContentThrowsContentFieldValidationException ( $initialLanguageCode, $structFields )
    public function testUpdateContentThrowsContentFieldValidationException($initialLanguageCode, $structFields)
    {
        list($existingFields, $fieldDefinitions) = $this->fixturesForTestUpdateContentNonRedundantFieldSetComplex();
        list($versionInfo, $contentUpdateStruct, $allFieldErrors) = $this->assertForTestUpdateContentThrowsContentFieldValidationException($initialLanguageCode, $structFields, $existingFields, $fieldDefinitions);
        try {
            $this->partlyMockedContentService->updateContent($versionInfo, $contentUpdateStruct);
        } catch (ContentFieldValidationException $e) {
            $this->assertEquals($allFieldErrors, $e->getFieldErrors());
            throw $e;
        }
    }
ContentTest