summaryrefslogtreecommitdiff
path: root/plugins/legacy_browser/tests/LegacyBrowser.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/legacy_browser/tests/LegacyBrowser.php')
-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..7a35ee5b6
--- /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 __DIR__ . '/../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);
+ }
+}
+