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; } }