Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2018-12-16 14:31:21 +0300
committerAleksander Machniak <alec@alec.pl>2018-12-16 14:31:21 +0300
commit36485dfc345ad724f08eaa7ea30c3cc88e48a00d (patch)
tree3c2dc131b03dbddff1566ddecb352c6e2db74f91 /tests
parenta32d72b66127c0410f1468067ec203423f57a520 (diff)
Prevent from using deprecated timezone names from jsTimezoneDetect
For better interoperability of plugins such as Calendar, for example issue see: https://git.kolab.org/T2666.
Diffstat (limited to 'tests')
-rw-r--r--tests/Framework/Config.php29
-rw-r--r--tests/phpunit.xml1
2 files changed, 30 insertions, 0 deletions
diff --git a/tests/Framework/Config.php b/tests/Framework/Config.php
new file mode 100644
index 000000000..6569fd5cf
--- /dev/null
+++ b/tests/Framework/Config.php
@@ -0,0 +1,29 @@
+<?php
+
+/**
+ * Test class to test rcube_config class
+ *
+ * @package Tests
+ */
+class Framework_Config extends PHPUnit_Framework_TestCase
+{
+
+ /**
+ * Class constructor
+ */
+ function test_class()
+ {
+ $object = new rcube_config();
+
+ $this->assertInstanceOf('rcube_config', $object, "Class constructor");
+ }
+
+ /**
+ * Test resolve_timezone_alias()
+ */
+ function test_resolve_timezone_alias()
+ {
+ $this->assertSame('UTC', rcube_config::resolve_timezone_alias('Etc/GMT'));
+ $this->assertSame('UTC', rcube_config::resolve_timezone_alias('Etc/Zulu'));
+ }
+}
diff --git a/tests/phpunit.xml b/tests/phpunit.xml
index 3f8e81390..76ef1b9a1 100644
--- a/tests/phpunit.xml
+++ b/tests/phpunit.xml
@@ -9,6 +9,7 @@
<file>Framework/Cache.php</file>
<file>Framework/CacheShared.php</file>
<file>Framework/Charset.php</file>
+ <file>Framework/Config.php</file>
<file>Framework/Contacts.php</file>
<file>Framework/ContentFilter.php</file>
<file>Framework/Csv2vcard.php</file>