diff options
author | Aleksander Machniak <alec@alec.pl> | 2019-10-16 13:42:50 +0300 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2019-10-16 13:42:50 +0300 |
commit | da2ebb272a03d7dfaa9f12ecb21d7eb20b7844da (patch) | |
tree | 2d42a471610fda0cd8b88e4aad8739593955041e /plugins | |
parent | cc1a1d95fe1976b59ee71e9aca1971953668c1a7 (diff) |
Add basic test for attachment_reminder plugin
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/attachment_reminder/tests/AttachmentReminder.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/plugins/attachment_reminder/tests/AttachmentReminder.php b/plugins/attachment_reminder/tests/AttachmentReminder.php new file mode 100644 index 000000000..5a28ab64d --- /dev/null +++ b/plugins/attachment_reminder/tests/AttachmentReminder.php @@ -0,0 +1,23 @@ +<?php + +class AttachmentReminder_Plugin extends PHPUnit_Framework_TestCase +{ + + function setUp() + { + include_once __DIR__ . '/../attachment_reminder.php'; + } + + /** + * Plugin object construction test + */ + function test_constructor() + { + $rcube = rcube::get_instance(); + $plugin = new attachment_reminder($rcube->plugins); + + $this->assertInstanceOf('attachment_reminder', $plugin); + $this->assertInstanceOf('rcube_plugin', $plugin); + } +} + |