From: Gunnar Wrobel
Date: Mon, 13 Dec 2010 09:52:05 +0000 (+0100)
Subject: Unused test.
X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=eb9058f0816e38ee5c1f2fda2d768a9cfb398895;p=horde.git
Unused test.
---
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