Horde_Kolab_Server_Object_Interface $user
) {
try {
- $this->_user_name = $user->getExternal('Fnln');
+ $this->_user_name = $user->getExternal('Firstnamelastname');
} catch (Horde_Kolab_Server_Exception_Novalue $e) {
$this->_user_name = $this->_user_id;
}
Horde_Kolab_Server_Object_Interface $user
) {
try {
- $this->_imap_server = $user->getExternal('KolabHomeserver');
+ $this->_imap_server = $user->getExternal('Kolabhomeserver');
} catch (Horde_Kolab_Server_Exception_Novalue $e) {
if (isset($this->_params['imap']['server'])) {
$this->_imap_server = $this->_params['imap']['server'];
Horde_Kolab_Server_Object_Interface $user
) {
try {
- $fb_server = $user->getExternal('KolabFreebusyHost');
+ $fb_server = $user->getExternal('Kolabfreebusyhost');
} catch (Horde_Kolab_Server_Exception_Novalue $e) {
if (isset($this->_params['freebusy']['url'])) {
$this->_freebusy_server = $this->_params['freebusy']['url'];
<file name="LoggedTest.php" role="test" />
</dir> <!-- /test/Horde/Kolab/Session/Class/Factory -->
<file name="LoggedTest.php" role="test" />
- <file name="SingletonTest.php" role="test" />
<dir name="Storage">
<file name="MockTest.php" role="test" />
<file name="SessionobjectsTest.php" role="test" />
<dir name="Integration">
<file name="AnonymousTest.php" role="test" />
<file name="SessionTest.php" role="test" />
+ <file name="SingletonTest.php" role="test" />
<file name="ValidTest.php" role="test" />
</dir> <!-- /test/Horde/Kolab/Session/Integration -->
<file name="phpunit.xml" role="test" />
<install name="test/Horde/Kolab/Session/Class/Factory/InjectorTest.php" as="Horde/Kolab/Session/Class/Factory/InjectorTest.php" />
<install name="test/Horde/Kolab/Session/Class/Factory/LoggedTest.php" as="Horde/Kolab/Session/Class/Factory/LoggedTest.php" />
<install name="test/Horde/Kolab/Session/Class/LoggedTest.php" as="Horde/Kolab/Session/Class/LoggedTest.php" />
- <install name="test/Horde/Kolab/Session/Class/SingletonTest.php" as="Horde/Kolab/Session/Class/SingletonTest.php" />
<install name="test/Horde/Kolab/Session/Class/Storage/MockTest.php" as="Horde/Kolab/Session/Class/Storage/MockTest.php" />
<install name="test/Horde/Kolab/Session/Class/Storage/SessionobjectsTest.php" as="Horde/Kolab/Session/Class/Storage/SessionobjectsTest.php" />
<install name="test/Horde/Kolab/Session/Class/StoredTest.php" as="Horde/Kolab/Session/Class/StoredTest.php" />
<install name="test/Horde/Kolab/Session/Class/Valid/LoggedTest.php" as="Horde/Kolab/Session/Class/Valid/LoggedTest.php" />
<install name="test/Horde/Kolab/Session/Integration/AnonymousTest.php" as="Horde/Kolab/Session/Integration/AnonymousTest.php" />
<install name="test/Horde/Kolab/Session/Integration/SessionTest.php" as="Horde/Kolab/Session/Integration/SessionTest.php" />
+ <install name="test/Horde/Kolab/Session/Integration/SingletonTest.php" as="Horde/Kolab/Session/Integration/SingletonTest.php" />
<install name="test/Horde/Kolab/Session/Integration/ValidTest.php" as="Horde/Kolab/Session/Integration/ValidTest.php" />
<install name="test/Horde/Kolab/Session/phpunit.xml" as="Horde/Kolab/Session/phpunit.php" />
<install name="test/Horde/Kolab/Session/SessionTestCase.php" as="Horde/Kolab/Session/SessionTestCase.php" />
+++ /dev/null
-<?php
-/**
- * Test the Kolab session singleton pattern.
- *
- * PHP version 5
- *
- * @category Kolab
- * @package Kolab_Session
- * @author Gunnar Wrobel <wrobel@pardus.de>
- * @license http://www.fsf.org/copyleft/lgpl.html LGPL
- * @link http://pear.horde.org/index.php?package=Kolab_Session
- */
-
-/**
- * Prepare the test setup.
- */
-require_once dirname(__FILE__) . '/../Autoload.php';
-
-/**
- * Test the Kolab session singleton pattern.
- *
- * Copyright 2009 The Horde Project (http://www.horde.org/)
- *
- * See the enclosed file COPYING for license information (LGPL). If you
- * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
- *
- * @category Kolab
- * @package Kolab_Session
- * @author Gunnar Wrobel <wrobel@pardus.de>
- * @license http://www.fsf.org/copyleft/lgpl.html LGPL
- * @link http://pear.horde.org/index.php?package=Kolab_Session
- */
-class Horde_Kolab_Session_Class_SingletonTest extends Horde_Kolab_Session_SessionTestCase
-{
- public function setUp()
- {
- global $conf;
-
- /** Provide a minimal configuration for the server */
- $conf['kolab']['ldap']['basedn'] = '';
- }
-
- public function testMethodSingletonHasResultHordekolabsession()
- {
- $this->assertType(
- 'Horde_Kolab_Session',
- Horde_Kolab_Session_Singleton::singleton(
- 'user', array('password' => 'pass')
- )
- );
- }
-
- public function testMethodSingletonHasResultHordekolabsessionAlwaysTheSameIfTheSessionIsValid()
- {
- $session1 = Horde_Kolab_Session_Singleton::singleton(
- 'user', array('password' => 'pass')
- );
- $session2 = Horde_Kolab_Session_Singleton::singleton(
- 'user', array('password' => 'pass')
- );
- $this->assertSame($session1, $session2);
- }
-}
\ No newline at end of file
--- /dev/null
+<?php
+/**
+ * Test the Kolab session singleton pattern.
+ *
+ * PHP version 5
+ *
+ * @category Kolab
+ * @package Kolab_Session
+ * @author Gunnar Wrobel <wrobel@pardus.de>
+ * @license http://www.fsf.org/copyleft/lgpl.html LGPL
+ * @link http://pear.horde.org/index.php?package=Kolab_Session
+ */
+
+/**
+ * Prepare the test setup.
+ */
+require_once dirname(__FILE__) . '/../Autoload.php';
+
+/**
+ * Test the Kolab session singleton pattern.
+ *
+ * Copyright 2009 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file COPYING for license information (LGPL). If you
+ * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
+ *
+ * @category Kolab
+ * @package Kolab_Session
+ * @author Gunnar Wrobel <wrobel@pardus.de>
+ * @license http://www.fsf.org/copyleft/lgpl.html LGPL
+ * @link http://pear.horde.org/index.php?package=Kolab_Session
+ */
+class Horde_Kolab_Session_Integration_SingletonTest extends Horde_Kolab_Session_SessionTestCase
+{
+ public function setUp()
+ {
+ global $conf;
+
+ /** Provide a minimal configuration for the server */
+ $conf['kolab']['ldap']['basedn'] = 'dc=test';
+ $conf['kolab']['ldap']['mock'] = true;
+ $conf['kolab']['ldap']['data'] = array(
+ 'dn=user,dc=test' => array(
+ 'dn' => 'dn=user,dc=test',
+ 'data' => array(
+ 'uid' => array('user'),
+ 'mail' => array('user@example.org'),
+ 'userPassword' => array('pass'),
+ 'objectClass' => array('top', 'kolabInetOrgPerson'),
+ )
+ )
+ );
+ }
+
+ public function testMethodSingletonHasResultHordekolabsession()
+ {
+ $this->assertType(
+ 'Horde_Kolab_Session',
+ Horde_Kolab_Session_Singleton::singleton(
+ 'user', array('password' => 'pass')
+ )
+ );
+ }
+
+ public function testMethodSingletonHasResultHordekolabsessionAlwaysTheSameIfTheSessionIsValid()
+ {
+ $session1 = Horde_Kolab_Session_Singleton::singleton(
+ 'user', array('password' => 'pass')
+ );
+ $session2 = Horde_Kolab_Session_Singleton::singleton(
+ 'user', array('password' => 'pass')
+ );
+ $this->assertSame($session1, $session2);
+ }
+}
\ No newline at end of file