Add basic test for attachment_reminder plugin

pull/6977/head
Aleksander Machniak 5 years ago
parent cc1a1d95fe
commit da2ebb272a

@ -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);
}
}

@ -57,6 +57,7 @@
<file>./../plugins/acl/tests/Acl.php</file>
<file>./../plugins/additional_message_headers/tests/AdditionalMessageHeaders.php</file>
<file>./../plugins/archive/tests/Archive.php</file>
<file>./../plugins/attachment_reminder/tests/AttachmentReminder.php</file>
<file>./../plugins/autologon/tests/Autologon.php</file>
<file>./../plugins/database_attachments/tests/DatabaseAttachments.php</file>
<file>./../plugins/debug_logger/tests/DebugLogger.php</file>

Loading…
Cancel
Save