From b005927f919cbc09dccf71e8c638be45a8af37d0 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Sat, 19 Jan 2013 12:16:16 +0100 Subject: Add basic tests for plugins --- .../tests/SubscriptionsOption.php | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 plugins/subscriptions_option/tests/SubscriptionsOption.php (limited to 'plugins/subscriptions_option/tests') diff --git a/plugins/subscriptions_option/tests/SubscriptionsOption.php b/plugins/subscriptions_option/tests/SubscriptionsOption.php new file mode 100644 index 000000000..6932a955f --- /dev/null +++ b/plugins/subscriptions_option/tests/SubscriptionsOption.php @@ -0,0 +1,23 @@ +<?php + +class SubscriptionsOption_Plugin extends PHPUnit_Framework_TestCase +{ + + function setUp() + { + include_once dirname(__FILE__) . '/../subscriptions_option.php'; + } + + /** + * Plugin object construction test + */ + function test_constructor() + { + $rcube = rcube::get_instance(); + $plugin = new subscriptions_option($rcube->api); + + $this->assertInstanceOf('subscriptions_option', $plugin); + $this->assertInstanceOf('rcube_plugin', $plugin); + } +} + -- cgit v1.2.3