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

testCreateContentThrowsContentFieldValidationException() public method

Test for the createContent() method.
public testCreateContentThrowsContentFieldValidationException ( $mainLanguageCode, $structFields )
    public function testCreateContentThrowsContentFieldValidationException($mainLanguageCode, $structFields)
    {
        $fieldDefinitions = $this->fixturesForTestCreateContentNonRedundantFieldSetComplex();
        list($contentCreateStruct, $allFieldErrors) = $this->assertForTestCreateContentThrowsContentFieldValidationException($mainLanguageCode, $structFields, $fieldDefinitions);
        $mockedService = $this->getPartlyMockedContentService();
        try {
            $mockedService->createContent($contentCreateStruct);
        } catch (ContentFieldValidationException $e) {
            $this->assertEquals($allFieldErrors, $e->getFieldErrors());
            throw $e;
        }
    }
ContentTest