diff options
Diffstat (limited to 'plugins/autologon/tests/Autologon.php')
-rw-r--r-- | plugins/autologon/tests/Autologon.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/plugins/autologon/tests/Autologon.php b/plugins/autologon/tests/Autologon.php new file mode 100644 index 000000000..0de193e4a --- /dev/null +++ b/plugins/autologon/tests/Autologon.php @@ -0,0 +1,23 @@ +<?php + +class Autologon_Plugin extends PHPUnit_Framework_TestCase +{ + + function setUp() + { + include_once dirname(__FILE__) . '/../autologon.php'; + } + + /** + * Plugin object construction test + */ + function test_constructor() + { + $rcube = rcube::get_instance(); + $plugin = new autologon($rcube->api); + + $this->assertInstanceOf('autologon', $plugin); + $this->assertInstanceOf('rcube_plugin', $plugin); + } +} + |