Skip to content
Snippets Groups Projects
Commit cd7398e5 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

version 7.9.34 - fix failures

parent 52bdafca
Branches
Tags
3 merge requests!2334Master,!2269Master,!2268Hotline master
Pipeline #2167 passed with stage
in 12 minutes and 30 seconds
......@@ -19,11 +19,18 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
class Class_WebService_VignetteNoticeTest extends Storm_Test_ModelTestCase {
class Class_WebService_VignetteNoticeTest extends ModelTestCase {
protected $_storm_default_to_volatile = true;
public function setUp() {
parent::setUp();
$http_client = $this->mock();
$this->fixture('Class_Profil',
['id' => 1, 'libelle' => 'default profil'])
->beCurrentProfil();
$this->fixture('Class_CodifTypeDoc',
['id' => 102,
'type_doc_id'=> 102,
......@@ -86,11 +93,18 @@ class Class_WebService_VignetteNoticeTest extends Storm_Test_ModelTestCase {
class Class_WebService_VignetteWrongFrbrTest extends Storm_Test_ModelTestCase {
class Class_WebService_VignetteWrongFrbrTest extends ModelTestCase {
protected $_storm_default_to_volatile = true;
public function setUp() {
parent::setUp();
$http_client = $this->mock();
$this->fixture('Class_Profil',
['id' => 1, 'libelle' => 'default profil'])
->beCurrentProfil();
$this->fixture('Class_CodifTypeDoc',
['id' => 102,
'type_doc_id'=> 102,
......@@ -104,6 +118,7 @@ class Class_WebService_VignetteWrongFrbrTest extends Storm_Test_ModelTestCase {
'ean' => '1111111',
'clef_alpha' => 'LEPHOOGRAPHE--GUIBERT---2004-1',
'type_doc' => 102]);
$album = $this->fixture('Class_Album',
['id' => 42,
'titre' => 'Aces High',
......@@ -113,17 +128,15 @@ class Class_WebService_VignetteWrongFrbrTest extends Storm_Test_ModelTestCase {
$this->fixture('Class_FRBR_Link',
['id' => 1,
'type_id' => 1,
'source' => ROOT_URL . BASE_URL . '/recherche/viewnotice/clef/LEPHOOGRAPHE--GUIBERT---2004-1',
'target' => ROOT_URL . BASE_URL . '/bib-numerique/notice/id/43']);
'source' => 'http://localhost' . BASE_URL . '/recherche/viewnotice/clef/LEPHOOGRAPHE--GUIBERT---2004-1',
'target' => 'http://localhost' . BASE_URL . '/bib-numerique/notice/id/43']);
$this->fixture('Class_FRBR_Link',
['id' => 2,
'type_id' => 1,
'source' => ROOT_URL . BASE_URL . '/recherche/viewnotice/clef/LEPHOOGRAPHE--GUIBERT---2004-1',
'target' => ROOT_URL . BASE_URL . '/bib-numerique/notice/id/42']);
'source' => 'http://localhost' . BASE_URL . '/recherche/viewnotice/clef/LEPHOOGRAPHE--GUIBERT---2004-1',
'target' => 'http://localhost' . BASE_URL . '/bib-numerique/notice/id/42']);
Class_WebService_AllServices::setHttpClient($http_client);
......@@ -146,7 +159,6 @@ class Class_WebService_VignetteWrongFrbrTest extends Storm_Test_ModelTestCase {
Class_Notice_Thumbnail_ProviderAbstract::setDefaultImageFactory($image_factory);
(new Class_WebService_Vignette())
->updateUrlsFromCacheServer(Class_Notice::find(10));
}
......
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