Skip to content
Snippets Groups Projects
Commit ea8694e3 authored by Laurent's avatar Laurent
Browse files

dev #77304 test fix

parent 256bab06
Branches
Tags
3 merge requests!2812Master,!2811Hotline,!2804Dev#77304 ameliorer les performances site tessadoc recherche domaine
Pipeline #4887 passed with stage
in 49 minutes and 6 seconds
......@@ -16,10 +16,10 @@
*
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with BOKEH; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
class ZendAfi_View_Helper_Album_BookMonoJsonVisitor extends ZendAfi_View_Helper_Album_BookJsonVisitorAbstract {
protected
protected
$_thumbnail_base_url,
$_page_params;
......@@ -30,12 +30,13 @@ class ZendAfi_View_Helper_Album_BookMonoJsonVisitor extends ZendAfi_View_Helper_
public function visitAlbum($album) {
$this->_page_params = [
xdebug_break();
$this->_page_params = [
'width' => (int)$album->getThumbnailWidth(),
'crop_top' => (int)$album->_getThumbnailCropTop(),
'crop_right' => (int)$album->_getThumbnailCropRight(),
'crop_bottom' => (int)$album->_getThumbnailCropBottom(),
'crop_left' => (int)$album->_getThumbnailCropLeft()
'crop_top' => (int)$album->getThumbnailCropTop(),
'crop_right' => (int)$album->getThumbnailCropRight(),
'crop_bottom' => (int)$album->getThumbnailCropBottom(),
'crop_left' => (int)$album->getThumbnailCropLeft()
];
$this->_thumbnail_base_url = $this->view->url(
......@@ -45,8 +46,8 @@ class ZendAfi_View_Helper_Album_BookMonoJsonVisitor extends ZendAfi_View_Helper_
$this->_page_params),
null,
true);
return parent::visitAlbum($album);
return parent::visitAlbum($album);
}
......
......@@ -86,7 +86,7 @@ class Telephone_RechercheControllerRessourceNumeriqueToutApprendreTest extends T
$this->fixture('Class_Album',
['id' => 1,
'titre' => 'smalltalk',
'type_doc_id' => ToutApprendre_Config::getName()]);
'type_doc_id' => Class_DigitalResource_Config::getNameFor('ToutApprendre_Config')]);
$item = $this->fixture('Class_Exemplaire',
['id' => 16,
......@@ -95,7 +95,7 @@ class Telephone_RechercheControllerRessourceNumeriqueToutApprendreTest extends T
$record = $this->fixture('Class_Notice',
['id' => 15,
'type_doc' => ToutApprendre_Config::getName()]);
'type_doc' => Class_DigitalResource_Config::getNameFor('ToutApprendre_Config')]);
$record->setTitrePrincipal('SmallTalk')
->setExemplaire($item);
......
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