From eb9058f0816e38ee5c1f2fda2d768a9cfb398895 Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel Date: Mon, 13 Dec 2010 10:52:05 +0100 Subject: [PATCH] Unused test. --- .../Horde/Kolab/Format/Integration/ContactTest.php | 72 +++++++--------------- 1 file changed, 21 insertions(+), 51 deletions(-) diff --git a/framework/Kolab_Format/test/Horde/Kolab/Format/Integration/ContactTest.php b/framework/Kolab_Format/test/Horde/Kolab/Format/Integration/ContactTest.php index 85a0c37f1..33eb0ee37 100644 --- a/framework/Kolab_Format/test/Horde/Kolab/Format/Integration/ContactTest.php +++ b/framework/Kolab_Format/test/Horde/Kolab/Format/Integration/ContactTest.php @@ -85,8 +85,6 @@ extends PHPUnit_Framework_TestCase */ public function testCategories() { - global $prefs; - $contact = new Horde_Kolab_Format_Xml_Contact( new Horde_Kolab_Format_Xml_Parser( new DOMDocument('1.0', 'UTF-8') @@ -97,65 +95,37 @@ extends PHPUnit_Framework_TestCase $object = $contact->load($xml); $this->assertContains('Test', $object['categories']); - $prefs = 'some string'; $object = $contact->load($xml); $this->assertContains('Test', $object['categories']); } - /** - * Test loading a contact with a category with preferences. - * - * @return NULL - */ - public function testCategoriesWithPrefs() - { - if (class_exists('Horde_Prefs')) { - /* Monkey patch to allw the value to be set. */ - $prefs->_prefs['categories'] = array('v' => ''); + /* /\** */ + /* * Test loading a contact with a category with preferences. */ + /* * */ + /* * @return NULL */ + /* *\/ */ + /* public function testCategoriesWithPrefs() */ + /* { */ + /* if (class_exists('Horde_Prefs')) { */ + /* /\* Monkey patch to allw the value to be set. *\/ */ + /* $prefs->_prefs['categories'] = array('v' => ''); */ - $contact = new Horde_Kolab_Format_Xml_Contact( - new Horde_Kolab_Format_Xml_Parser( - new DOMDocument('1.0', 'UTF-8') - ) - ); - $xml = file_get_contents(dirname(__FILE__) - . '/fixtures/contact_category.xml'); - $object = $contact->load($xml); - $this->assertContains('Test', $object['categories']); - } - } + /* $contact = new Horde_Kolab_Format_Xml_Contact( */ + /* new Horde_Kolab_Format_Xml_Parser( */ + /* new DOMDocument('1.0', 'UTF-8') */ + /* ) */ + /* ); */ + /* $xml = file_get_contents(dirname(__FILE__) */ + /* . '/fixtures/contact_category.xml'); */ + /* $object = $contact->load($xml); */ + /* $this->assertContains('Test', $object['categories']); */ + /* } */ + /* } */ } /** - * A dummy registry. - * - * Copyright 2007-2010 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_Format - * @author Gunnar Wrobel - * @license http://www.fsf.org/copyleft/lgpl.html LGPL - * @link http://pear.horde.org/index.php?package=Kolab_Format - */ -class DummyRegistry -{ - /** - * Returns the application context. - * - * @return string Always "horde". - */ - function get() - { - return 'horde'; - } -} - -/** * A modification to the original contact handler. This prevents unpredictable * date entries. * -- 2.11.0