eZ\Publish\Core\REST\Client\Tests\Values\ContentType\ContentTypeTest::testGetFieldDefinitionFailure PHP Method

testGetFieldDefinitionFailure() public method

    public function testGetFieldDefinitionFailure()
    {
        $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(null, $contentType->getFieldDefinition('non-existent'));
    }