This method returns the content type field definitions from this type.
public getFieldDefinitions ( ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] | ||
리턴 | eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] |
public function testGetFieldDefinitions() { $contentType = new ContentType($this->contentTypeServiceMock, array('fieldDefinitionListReference' => '/content/types/23/fieldDefinitions')); $contentTypeServiceMock = $this->contentTypeServiceMock; $contentTypeServiceMock->expects($this->once())->method('loadFieldDefinitionList')->with($this->equalTo('/content/types/23/fieldDefinitions'))->will($this->returnValue($this->getFieldDefinitionListMock())); $this->assertEquals($this->getFieldDefinitions(), $contentType->getFieldDefinitions()); }