From: Michael J. Rubinsky Date: Mon, 12 Apr 2010 19:21:42 +0000 (-0400) Subject: No need for nls in this test. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e972524ca5d63c346bc6b7a7538883268b9c01c8;p=horde.git No need for nls in this test. --- diff --git a/framework/ActiveSync/test/Horde/ActiveSync/HordeDriverTest.php b/framework/ActiveSync/test/Horde/ActiveSync/HordeDriverTest.php index 93ec4824e..ed9431fd4 100644 --- a/framework/ActiveSync/test/Horde/ActiveSync/HordeDriverTest.php +++ b/framework/ActiveSync/test/Horde/ActiveSync/HordeDriverTest.php @@ -1,5 +1,5 @@ @@ -39,7 +39,7 @@ class Horde_ActiveSync_HordeDriverTest extends Horde_Test_Case /** * Test that Horde_ActiveSync_Driver_Horde#getMessageList() returns expected * data structures. Uses mock data via the MockConnector - * + * */ public function testGetMessageList() { @@ -79,7 +79,7 @@ class Horde_ActiveSync_HordeDriverTest extends Horde_Test_Case * Mocks the registry response. * * @TODO: Calendar data, more complete test of vCard attribtues. - * + * */ public function testGetMessage() { @@ -132,7 +132,6 @@ class Horde_ActiveSync_HordeDriverTest extends Horde_Test_Case if (version_compare(PHP_VERSION, '5.3.0', '>=')) { error_reporting(E_ALL & ~E_DEPRECATED); } - /* This test REQUIRES that the NLS system be initialized, so skip this * if we don't have a configured horde */ @@ -142,7 +141,7 @@ class Horde_ActiveSync_HordeDriverTest extends Horde_Test_Case } require_once dirname(__FILE__) . '/../../../../../horde/lib/core.php'; Horde_Nls::setLanguage(); - + $fixture = array('contacts_export' => $contact); $connector = new Horde_ActiveSync_MockConnector(array('fixture' => $fixture)); $state = $this->getMockSkipConstructor('Horde_ActiveSync_State_File'); @@ -191,7 +190,7 @@ class Horde_ActiveSync_HordeDriverTest extends Horde_Test_Case } require_once dirname(__FILE__) . '/../../../../../horde/lib/core.php'; Horde_Nls::setLanguage(); - + $contact = array( '__uid' => '20100205111228.89913meqtp5u09rg@localhost', 'firstname' => Horde_String::convertCharset('Grüb', Horde_Nls::getCharset(), 'iso-8859-1') @@ -212,7 +211,7 @@ class Horde_ActiveSync_HordeDriverTest extends Horde_Test_Case /** * Test ChangeMessage: - * + * * This tests converting the contact streamer object to a hash suitable for * passing to the contacts/import method. Because it only returns the UID * for the newly added/edited entry, we can't check the results here. The @@ -243,16 +242,6 @@ class Horde_ActiveSync_HordeDriverTest extends Horde_Test_Case error_reporting(E_ALL & ~E_DEPRECATED); } - /* This test REQUIRES that the NLS system be initialized, so skip this - * if we don't have a configured horde - */ - if (!file_exists(dirname(__FILE__) . '/../../../../../horde/config/conf.php')) { - $this->markTestIncomplete('Test requires the NLS system'); - return; - } - require_once dirname(__FILE__) . '/../../../../../horde/lib/core.php'; - Horde_Nls::setLanguage(); - $connector = new Horde_ActiveSync_MockConnector(array('fixture' => array())); $state = $this->getMockSkipConstructor('Horde_ActiveSync_State_File'); $driver = new Horde_ActiveSync_Driver_Horde(array('connector' => $connector,