Skip to content

Commit

Permalink
Add dummy tests for legacy_browser plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Apr 12, 2014
1 parent 3ff7c9e commit e302120
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions plugins/legacy_browser/tests/LegacyBrowser.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

class Legacy_Browser_Plugin extends PHPUnit_Framework_TestCase
{

function setUp()
{
include_once dirname(__FILE__) . '/../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);
}
}

1 change: 1 addition & 0 deletions tests/phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
<file>./../plugins/http_authentication/tests/HttpAuthentication.php</file>
<file>./../plugins/identity_select/tests/IdentitySelect.php</file>
<file>./../plugins/jqueryui/tests/Jqueryui.php</file>
<file>./../plugins/legacy_browser/tests/LegacyBrowser.php</file>
<file>./../plugins/managesieve/tests/Managesieve.php</file>
<file>./../plugins/managesieve/tests/Parser.php</file>
<file>./../plugins/managesieve/tests/Tokenizer.php</file>
Expand Down

0 comments on commit e302120

Please sign in to comment.