function setUp() { parent::setUp(); $tag_info = new lmbMacroTagInfo('lmbMacroRuntimeWidgetTag', 'whatever'); $source_location = new lmbMacroSourceLocation('my_file', 10); $this->tag = new lmbMacroRuntimeWidgetTag($source_location, 'my_tag', $tag_info); }
function setUp() { parent::setUp(); lmbFs::mkdir($this->tpl_dir . '/_mail'); $toolkit = lmbToolkit::instance(); $toolkit->setConf('macro', $this->_createMacroConfig()); $mail_config = $toolkit->getConf('mail'); $mail_config->set('mode', 'testing'); $toolkit->setConf('mail', $mail_config); }
function setUp() { parent::setUp(); $this->form = new lmbMacroFormWidget('test_form'); $this->datasource = new lmbSet(); $this->form->setDatasource($this->datasource); $this->checkbox = new lmbMacroCheckableInputWidget('my_checkbox'); $this->form->addChild($this->checkbox); $this->checkbox->setForm($this->form); }
function setUp() { parent::setUp(); $acl = new lmbAcl(); $acl->addRole('boy'); $acl->addRole('man'); $acl->addResource('girl'); $acl->allow('boy', 'girl', 'sex'); $acl->allow('man', 'girl', 'marry'); $acl->addResource('vodka'); $acl->allow('man', 'vodka'); lmbToolkit::instance()->setAcl($acl); $this->tags_dir = realpath(dirname(__FILE__) . '/../../../src/macro'); }
function setUp() { parent::setUp(); lmbFs::mkdir(LIMB_VAR_DIR . '/tpl/tags/'); lmbFs::mkdir(LIMB_VAR_DIR . '/tpl/tags/subfolder/'); }
function tearDown() { lmb_use_charset_driver($this->prev_driver); parent::tearDown(); }
function tearDown() { $_GET = $this->old_get; $_SERVER = $this->old_server; parent::tearDown(); }
function setUp() { parent::setUp(); $this->class = 'Foo' . mt_rand(); $this->writer = new lmbMacroCodeWriter($this->class); }
function setUp() { parent::setUp(); $this->toolkit = lmbToolkit::instance(); }
function tearDown() { parent::tearDown(); $_SERVER["HTTP_REFERER"] = $this->prev_ref; }