summaryrefslogtreecommitdiff
path: root/plugins/legacy_browser
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-04-12 14:15:24 +0200
committerAleksander Machniak <alec@alec.pl>2014-04-12 14:15:24 +0200
commite30212013d591dee699724b559ec60f6495bad90 (patch)
tree11730bdc620a44f4819aac9d287af310f313d7a2 /plugins/legacy_browser
parent3ff7c9ed396beedaff96d18ce60ab03cad984acb (diff)
Add dummy tests for legacy_browser plugin
Diffstat (limited to 'plugins/legacy_browser')
-rw-r--r--plugins/legacy_browser/tests/LegacyBrowser.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/plugins/legacy_browser/tests/LegacyBrowser.php b/plugins/legacy_browser/tests/LegacyBrowser.php
new file mode 100644
index 000000000..8e9762fb2
--- /dev/null
+++ b/plugins/legacy_browser/tests/LegacyBrowser.php
@@ -0,0 +1,23 @@
+<?php
+
+class Legacy_Browser_Plugin extends PHPUnit_Framework_TestCase
+{
+
+ function setUp()
+ {
+ include_once dirname(__FILE__) . '/../legacy_browser.php';
+ }
+
+ /**
+ * Plugin object construction test
+ */
+ function test_constructor()
+ {
+ $rcube = rcube::get_instance();
+ $plugin = new legacy_browser($rcube->api);
+
+ $this->assertInstanceOf('legacy_browser', $plugin);
+ $this->assertInstanceOf('rcube_plugin', $plugin);
+ }
+}
+