Commit 3ba03eb1 authored by Patrick Barroca's avatar Patrick Barroca 🐧

Merge branch 'hotline#89508_babeltheque' into 'hotline'

hotline #89508 : call babelio in HTTPS

See merge request afi/opacce!3140
parents c4856400 bc359166
- ticket #89508 : Babelthèque : compatibilité HTTPS
\ No newline at end of file
......@@ -37,7 +37,7 @@
window.loadBabelthequeScript = function(isbn) {
insertBabelthequeISBNTag(isbn);
$.getScript('http://www.babeltheque.com/bw_' + bwid +'.js');
$.getScript('https://www.babelio.com/bw_' + bwid +'.js');
}
})();
......
......@@ -964,18 +964,15 @@ class NoticeAjaxControllerExemplairesTest extends NoticeAjaxControllerExemplaire
class NoticeAjaxControllerBabelthequeTest extends AbstractControllerTestCase {
protected $_storm_default_to_volatile = true;
public function setUp() {
parent::setUp();
Class_Notice::getLoader()
->newInstanceWithId(157675)
->setIsbn('978-2-226-21993-0');
$this->fixture('Class_Notice', ['id' => 157675,
'isbn' => '978-2-226-21993-0']);
Class_AdminVar::getLoader()
->newInstanceWithId('BABELTHEQUE_JS')
->setValeur('http://www.babeltheque.com/bw_85.js');
Class_AdminVar::set('BABELTHEQUE_JS', 'https://www.babelio.com/bw_85.js');
$this->dispatch('/opac/noticeajax/babeltheque?id_notice=N157675', true);
}
......@@ -983,7 +980,7 @@ class NoticeAjaxControllerBabelthequeTest extends AbstractControllerTestCase {
/** @test */
public function responseShouldContainsBabelthequeScript() {
$this->assertXPath('//script[@src="http://www.babeltheque.com/bw_85.js"]');
$this->assertXPath('//script[@src="https://www.babelio.com/bw_85.js"]');
}
......@@ -1008,8 +1005,6 @@ class NoticeAjaxControllerBabelthequeTest extends AbstractControllerTestCase {
class NoticeAjaxControllerBabelthequeWithoutOptionTest extends AbstractControllerTestCase {
public function setUp() {
parent::setUp();
......
Markdown is supported
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