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

dev #19211 recuperation visuels cd : change fixtures test

parent aa3a3256
Branches
Tags 6.7.1
2 merge requests!1152Dev#19211 recuperation des visuels cd dans le champ 959 ,!1144Dev#19211 recuperation des visuels cd dans le champ 959
...@@ -37,7 +37,7 @@ class Class_Notice_Thumbnail_ProviderThirdParty ...@@ -37,7 +37,7 @@ class Class_Notice_Thumbnail_ProviderThirdParty
'thumbnail_fields'); 'thumbnail_fields');
$datas = explode(';', $thumbnail); $datas = explode(';', $thumbnail);
foreach ($datas as $data) { foreach ($datas as $data) {
list($zone, $field) = explode('$', $data); list($zone, $field) = explode('-', $data);
$subfields = $this->_record->get_subfield($zone, $field); $subfields = $this->_record->get_subfield($zone, $field);
$image = empty($subfields) ? null : $this->_getFirstImage($subfields); $image = empty($subfields) ? null : $this->_getFirstImage($subfields);
if ($image) if ($image)
......
...@@ -110,7 +110,7 @@ class NoticeVignetteTest extends Storm_Test_ModelTestCase { ...@@ -110,7 +110,7 @@ class NoticeVignetteTest extends Storm_Test_ModelTestCase {
$preferences= [ 'thumbnail_fields' => '700$a;856$u']; $preferences= [ 'thumbnail_fields' => '700-a;856-u'];
Class_Profil::getCurrentProfil() Class_Profil::getCurrentProfil()
->setCfgModules(['recherche' => ['viewnotice'.Class_TypeDoc::DISQUE => $preferences]]); ->setCfgModules(['recherche' => ['viewnotice'.Class_TypeDoc::DISQUE => $preferences]]);
...@@ -223,7 +223,7 @@ class NoticeVignetteTest extends Storm_Test_ModelTestCase { ...@@ -223,7 +223,7 @@ class NoticeVignetteTest extends Storm_Test_ModelTestCase {
/** @test */ /** @test */
public function unexistingUrlThumbnailShoudFallbackToCacheServer() { public function unexistingUrlThumbnailShoudFallbackToCacheServer() {
$preferences= [ 'thumbnail_fields' => '856$g']; $preferences= [ 'thumbnail_fields' => '856-g'];
Class_Profil::getCurrentProfil() Class_Profil::getCurrentProfil()
->setCfgModules(['recherche' => ['viewnotice'.Class_TypeDoc::DISQUE => $preferences]]); ->setCfgModules(['recherche' => ['viewnotice'.Class_TypeDoc::DISQUE => $preferences]]);
......
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