/**
  *
  */
 public function testValidateOk()
 {
     $image = new ImageEntity();
     $image->setLocation('http://test.com/image.png');
     $video = new VideoEntity();
     $video->setThumbnailLoc('http://test.com/video.png')->setTitle('test')->setDescription('test')->setContentLoc('http://test.com/video.avi');
     $news = new NewsEntity();
     $news->setTitle('test')->setPublicationName('test')->setPublicationLanguage('en')->setAccess('Subscription')->setGenres('PressRelease');
     $this->locationEntity->setLocation('http://test.com/')->setLastmod(new \DateTime())->setChangefreq('always')->setPriority(0.5)->addImage($image)->addVideo($video)->addNews($news);
     $this->assertEquals($this->locationEntity->validate(), $this->locationEntity);
 }
 /**
  *
  */
 public function testValidateOk()
 {
     $this->videoEntity->setThumbnailLoc('http://site.com/video.png')->setTitle('test')->setDescription('test')->setContentLoc('http://site.com/video.avi')->setRestriction(array('countries' => 'GB', 'relationship' => 'allow'))->setGalleryLoc(array('url' => 'http://site.com/video.png', 'title' => null))->setPrice(array('price' => 123, 'currency' => 'USD'))->setUploader(array('name' => 'test', 'info' => 'http://site.com/video.png'))->setPlatform(array('code' => 'WEB', 'relationship' => 'allow'));
     $this->assertEquals($this->videoEntity->validate(), $this->videoEntity);
 }