public function testHelperProperies()
 {
     $provider = $this->getProvider();
     $provider->addFormat('admin', array('width' => 100));
     $media = new Media();
     $media->setName('test.png');
     $media->setProviderReference('ASDASDAS.png');
     $media->setId(10);
     $media->setHeight(100);
     $properties = $provider->getHelperProperties($media, 'admin');
     $this->assertInternalType('array', $properties);
     $this->assertEquals('test.png', $properties['title']);
 }
 public function testHelperProperties()
 {
     $provider = $this->getProvider();
     $provider->addFormat('admin', array('width' => 100));
     $media = new Media();
     $media->setName('Les tests');
     $media->setProviderReference('ASDASDAS.png');
     $media->setId(10);
     $media->setHeight(100);
     $media->setWidth(100);
     $properties = $provider->getHelperProperties($media, 'admin');
     $this->assertInternalType('array', $properties);
     $this->assertSame(100, $properties['player_parameters']['height']);
     $this->assertSame(100, $properties['player_parameters']['width']);
 }