public function testLoadContentTypeDraft() { $storedContentTypeDraft = $this->createDraftContentType(); /* BEGIN: Use Case */ $contentTypeService = $this->repository->getContentTypeService(); $loadedContentTypeDraft = $contentTypeService->loadContentTypeDraft($storedContentTypeDraft->id); /* END: Use Case */ $this->assertInstanceOf('eZ\\Publish\\API\\Repository\\Values\\ContentType\\ContentTypeDraft', $loadedContentTypeDraft); return array('expected' => $storedContentTypeDraft, 'actual' => $loadedContentTypeDraft); }