/**
  * @test
  */
 public function aContentObjectCanBeSetRetrievedAndUnset()
 {
     $contentObject = new \stdClass();
     $this->nodeData->setContentObject($contentObject);
     $this->assertSame($contentObject, $this->nodeData->getContentObject());
     $this->nodeData->unsetContentObject();
     $this->assertNull($this->nodeData->getContentObject());
 }
Пример #2
0
 /**
  * Returns the content object of this node (if any).
  *
  * @return object
  * @api
  */
 public function getContentObject()
 {
     return $this->nodeData->getContentObject();
 }