/**
  * Test display Preview
  */
 public function testDisplayPreview()
 {
     $media = $this->manager->displayPreview($this->media);
     Phake::verify($this->displayMediaStrategie1)->displayPreview($this->media);
     Phake::verify($this->displayMediaStrategie2, Phake::never())->displayPreview($this->media);
     $this->assertInstanceOf('OpenOrchestra\\Media\\Model\\MediaInterface', $media);
 }
 /**
  * Test display Preview with default strategy
  */
 public function testDisplayPreviewDefaultStrategy()
 {
     Phake::when($this->displayMediaStrategy1)->support($this->media)->thenReturn(false);
     $media = $this->manager->displayPreview($this->media);
     $this->assertSupportChain();
     Phake::verify($this->defaultStrategy)->displayPreview($this->media);
     $this->assertSame($this->phakeHtml['defaultStrategy']['displayPreview'], $media);
 }