예제 #1
0
 /**
  * Test if content elements can be set
  *
  * @test
  * @return void
  */
 public function contentElementsCanBeSet()
 {
     $ce = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
     $item = new SplObjectStorage();
     $ce->attach($item);
     $this->newsDomainModelInstance->setContentElements($ce);
     $this->assertEquals($ce, $this->newsDomainModelInstance->getContentElements());
 }
 /**
  * Test if content elements can be set
  *
  * @test
  * @return void
  */
 public function contentElementsCanBeSet()
 {
     $ce = '12,34';
     $this->newsDomainModelInstance->setContentElements($ce);
     $this->assertEquals($ce, $this->newsDomainModelInstance->getContentElements());
 }