Skip to content
Snippets Groups Projects
Commit e188089a authored by efalcy's avatar efalcy
Browse files

artevod : ouverture d'une nouvelle page lorsque l'on clique sur "Visionner le film"

parent 03a5cb07
Branches
Tags
No related merge requests found
......@@ -56,7 +56,8 @@ class ZendAfi_View_Helper_TagVideo extends ZendAfi_View_Helper_TagRessourceNumer
$arte_vod_link = Class_ArteVodLink::forAlbumAndUser($album, $current_user);
return $this->view->tagAnchor($arte_vod_link->url(),
$this->_('Visionner le film dans son intégralité'));
$this->_('Visionner le film dans son intégralité'),
['target' => '_blank']);
}
}
......
......@@ -92,6 +92,20 @@ class ZendAfi_View_Helper_TagVideoTest extends ViewHelperTestCase {
/** @test */
public function withCurrentUserAbonneSigbShouldDisplayLinkFullPlayInNewPage() {
$this->_james_bond
->setUserGroups([$this->group_multimedia])
->setDateFin('2023-09-12')
->beAbonneSIGB();
$this->assertXPathContentContains($this->_helper->tagVideo($this->_album),
'//a[contains(@target, "_blank")]',
'Visionner le film');
}
/** @test */
public function withCurrentUserAbonneSigbInvalidShouldNotDisplayLinkFullPlay() {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment