Commit 0ff3b858 authored by Patrick Barroca's avatar Patrick Barroca 😠
Browse files

dev #73297 : remove dedicated adminvar fixture

parent 168b4bb6
......@@ -20,19 +20,6 @@
*/
class AssimilAdminVars {
public static function activate() {
Class_AdminVar::set('Assimil_Assimil', '1');
}
public static function deactivate() {
Class_AdminVar::set('Assimil_Assimil', '0');
}
}
class AssimilConfigTest extends ModelTestCase {
protected
......@@ -152,7 +139,7 @@ class AssimilActivatedAdminTest extends AssimilActivatedTestCase {
/** @test */
public function batchHarvestAssimilShouldHaveBeedDeleted() {
AssimilAdminVars::deactivate();
Class_AdminVar::set('Assimil_Assimil', 0);
$this->assertNull(Class_Batch::findFirstBy(['type' => 'Assimil_Batch']));
}
......@@ -163,7 +150,7 @@ class AssimilActivatedAdminTest extends AssimilActivatedTestCase {
['id' => 1,
'parent_id' => 0,
'libelle' => 'Assimil']);
AssimilAdminVars::deactivate();
Class_AdminVar::set('Assimil_Assimil', 0);
$this->assertNull(Class_AlbumCategorie::findFirstBy(['libelle' => 'Assimil']));
}
......@@ -241,7 +228,7 @@ class AssimilOpacIndexControllerWithMenuTest extends AbstractControllerTestCase
public function setUp() {
parent::setUp();
AssimilAdminVars::activate();
Class_AdminVar::set('Assimil_Assimil', 1);
$cfg_menus = ['H' => ['libelle' => 'Menu horizontal',
'picto' => 'vide.gif',
'menus' => [['type_menu' => 'MENU',
......
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