fix text locale
authorStefanie Stamer <s.stamer@metaways.de>
Thu, 13 Jul 2017 16:15:29 +0000 (18:15 +0200)
committerPhilipp Schüle <p.schuele@metaways.de>
Fri, 14 Jul 2017 05:20:35 +0000 (07:20 +0200)
Change-Id: I4ba17aa240222e3e6be344e7059410228388f663
Reviewed-on: http://gerrit.tine20.com/customers/5160
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
Tested-by: Philipp Schüle <p.schuele@metaways.de>
tests/tine20/Felamimail/Frontend/JsonTest.php
tests/tine20/Filemanager/ControllerTests.php
tests/tine20/Tinebase/Frontend/CliTest.php

index a5769ff..b7162c9 100644 (file)
@@ -2166,6 +2166,7 @@ IbVx8ZTO7dJRKrg72aFmWTf0uNla7vicAhpiLWobyNYcZbIjrAGDfg==
      */
     public function testAttachmentMethodPublicDownloadLinkUpload()
     {
+        Zend_Registry::set('locale', new Zend_Locale('en'));
         $message = $this->_testAttachmentType('download_public');
 
         self::assertTrue(isset($message['attachments']), 'attachment set: ' . print_r($message, true));
@@ -2198,6 +2199,7 @@ IbVx8ZTO7dJRKrg72aFmWTf0uNla7vicAhpiLWobyNYcZbIjrAGDfg==
      */
     public function testAttachmentMethodProtectedDownloadLink()
     {
+        Zend_Registry::set('locale', new Zend_Locale('en'));
         $message = $this->_testAttachmentType('download_protected');
 
         self::assertTrue(isset($message['attachments']), 'attachment set: ' . print_r($message, true));
index 25c6189..f10e40c 100644 (file)
@@ -68,6 +68,8 @@ class Filemanager_ControllerTests extends TestCase
 
     public function testNotificationUpdateForReadOnly()
     {
+        Zend_Registry::set('locale', new Zend_Locale('en'));
+        
         $oldUser = Tinebase_Core::getUser();
         /** @var Tinebase_Model_FullUser $sclever */
         $sclever = $this->_personas['sclever'];
index a40d985..60b76fb 100644 (file)
@@ -526,6 +526,7 @@ class Tinebase_Frontend_CliTest extends TestCase
      */
     public function testUserReport()
     {
+        Zend_Registry::set('locale', new Zend_Locale('en'));
         ob_start();
         $result = $this->_cli->userReport();
         $out = ob_get_clean();