Skip to content
Snippets Groups Projects
Commit 3401a1b6 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

Merge branch...

Merge branch 'hotline#138355_bokeh_intranet_lien_vers_les_notices_depuis_les_flux_rss_mauvaise_url_' into 'hotline'

hotline: #138355 : link to notice in rss was broken

See merge request !4209
parents 547f2ea9 94a7b690
Branches
Tags
3 merge requests!4230master in,!4227hotline#137304 : Worklfow : link sent in email for article validation in...,!4209hotline: #138355 : link to notice in rss was broken
Pipeline #14808 passed with stage
in 49 minutes and 43 seconds
- ticket #138355 : Flux Rss : Correction des liens vers les notices dans les flux RSS générés par les carrousels.
\ No newline at end of file
......@@ -314,7 +314,7 @@ class RssController extends ZendAfi_Controller_Action {
$items [] = ['titre' => '<![CDATA[' . str_replace(BR, ' ', $record->getTitrePrincipal()) . ', ' . $record->getAuteurPrincipal() . ']]>' ,
'lien' => $this->view->absoluteUrl([
'controller' => 'recherche',
'action' => 'viewrecord',
'action' => 'viewnotice',
'id' => $record->getId(),
], null, true),
'desc' => '<![CDATA[' . $this->_noticeRssDescription($record) . ']]>',
......
......@@ -296,8 +296,10 @@ class RssControllerKiosqueTest extends AbstractControllerTestCase {
/** @test */
public function rssLinkShouldContainBaseUrl() {
$this->assertXPathContentContains('//link', BASE_URL);
public function rssLinkShouldContainBaseUrl_recherche_viewnotice_id_1() {
/* hotline: #138355 */
$this->assertXPathContentContains('//link',
BASE_URL . '/recherche/viewnotice/id/1');
}
......@@ -447,4 +449,4 @@ class RssControllerCritiquesTest extends AbstractControllerTestCase {
public function rssItemFirstImageShouldBeRawThumbnail() {
$this->assertContains('recherche/raw-thumbnail/id/1"/><media:content', $this->_response->getBody());
}
}
\ No newline at end of file
}
......@@ -123,6 +123,14 @@ class TemplatesRssForVolatileKiosqueTest extends AbstractControllerTestCase {
public function ninNinDansLUniversShouldBePresent() {
$this->assertXPathContentContains('//item/title', '<![CDATA[NinNin dans l\'Univers, ]]>');
}
/* hotline: #138355 */
/** @test */
public function linkToRecordShouldBeBokeh_recherche_viewnotice_id_1() {
$this->assertXPathContentContains('//item/link',
'/recherche/viewnotice/id/1');
}
}
......
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