Copyright 2008-2016 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.horde.org/licenses/lgpl21.
/** * Set up testing. * * @return NULL */ protected function setUp() { parent::setUp(); $this->server = $this->getKolabMockServer(); $users = $this->validUsers(); foreach ($users as $user) { $result = $this->server->add($user[0]); } }
/** * Set up testing. * * @return NULL */ public function setUp() { parent::setUp(); if (!extension_loaded('ldap') && !@dl('ldap.' . PHP_SHLIB_SUFFIX)) { $this->markTestSuiteSkipped('Ldap extension is missing!'); } if (!class_exists('Horde_Ldap')) { $this->markTestSuiteSkipped('PEAR package Horde_Ldap is not installed!'); } $this->markTestIncomplete('Needs to be fixed'); $this->initializeEnvironments(); $this->servers = $this->getKolabServers(); foreach ($this->servers as $server) { $this->addBasicUsersToServer($server); } }
/** * Set up a dummy db object that will not be used during the * tests. We just need it so that PHP does not complain about the * inability to refernce the storage class. * * @return NULL */ protected function setUp() { parent::setUp(); $this->_dummydb = new DummyDB(); }
/** * Handle a "then" step. * * @param array &$world Joined "world" of variables. * @param string $action The description of the step. * @param array $arguments Additional arguments to the step. * * @return mixed The outcome of the step. */ public function runThen(&$world, $action, $arguments) { switch ($action) { case 'the creation of the folder was successful': $this->assertNoError($world['folder_creation']); break; case 'the list contains a share named': $this->assertNoError($world['list']); $this->assertContains($arguments[0], array_keys($world['list'])); break; default: return parent::runThen($world, $action, $arguments); } }
/** * Set up testing. * * @return NULL */ protected function setUp() { parent::setUp(); $this->server = $this->getKolabMockServer(); }
/** * Set up testing. * * @return NULL */ protected function setUp() { parent::setUp(); $this->initializeEnvironments(); $this->servers = $this->getKolabServers(); }