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

rel #21441 : fix tests errors

parent 11ce7eac
Branches
Tags
No related merge requests found
......@@ -37,9 +37,10 @@ abstract class CmsControllerCustomFieldsTestCase extends AbstractControllerTestC
$meta = $this->fixture('Class_CustomField_Meta',
['id' => 3,
'label' => 'Public',
'label' => 'Public',
'field_type' => Class_CustomField_Meta::SELECT,
'options_list' => 'Hardcore gamers; newbies',]);
'options_list' => 'Hardcore gamers; newbies',
'indexable' => 1]);
$this->_custom_field = $this->fixture('Class_CustomField',
['id' => 5,
......@@ -183,6 +184,17 @@ class CmsControllerCustomFieldsNotIndexableMetaPostEditActionTest
public function setUp() {
parent::setUp();
Zend_Registry::set('sql',
$this->mock()
->whenCalled('execute')
->with('delete from codif_thesaurus where id_thesaurus like "CFCF0001%"')
->willDo(
function() {
Class_CodifThesaurus::findForCustomField($this->_custom_field)
->delete();
})
->beStrict());
$this->_custom_field
->setIndexable(0)
->save();
......
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