Skip to content
Snippets Groups Projects
Commit b364b061 authored by pbarroca's avatar pbarroca
Browse files

Cosmo : Début refacto indexation des pseudo notices

parent a3526169
Branches
Tags
No related merge requests found
This diff is collapsed.
......@@ -76,7 +76,7 @@ abstract class NoticeIntegrationAbstract extends ModelTestCase {
class NoticeIntegrationLivreNumTest extends NoticeIntegrationAbstract {
public function setUp() {
parent::setUp();
$notice_integration=new notice_integration();
$notice_integration = new notice_integration();
Storm_Test_ObjectWrapper::onLoaderOfModel('Class_CodifThesaurus')
->whenCalled('findThesaurusForCatalogue')
......@@ -87,15 +87,12 @@ class NoticeIntegrationLivreNumTest extends NoticeIntegrationAbstract {
->with(6)
->answers(Class_CodifThesaurus::newInstanceWithId(25, ['id_thesaurus' => 29]));
$this->_mock_sql
->whenCalled('fetchEnreg')
->with("Select * from codif_auteur where MATCH(formes) AGAINST('\"LABORITxHENRI\"' IN BOOLEAN MODE)")
->answers(['id_auteur' => 234]);
Class_Album::newInstanceWithId(100);
$this->fixture('Class_CodifAuteur', ['id' => '234']);
$this->fixture('Class_Album', ['id' => 100]);
$this->ret = $notice_integration->traitePseudoNotice(100,
['id' => 100,
'id_bib' => 2,
'titre'=>'Eloge de la fuite',
'tags'=> 'domination,sociologie,biologie',
'auteur' => 'Laborit Henri',
......
......@@ -22,8 +22,10 @@
// OPAC3 - Tags utilisateurs
//////////////////////////////////////////////////////////////////////////////////////////
class Class_TagNotice
{
class Class_TagNotice extends Storm_Model_Abstract {
protected $_table_name = 'codif_tags';
protected $_table_primary = 'id_tag';
// ----------------------------------------------------------------
// Rend une liste pour un champ suggestion
......
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