Aleksander Machniak
2014-04-12 e30212013d591dee699724b559ec60f6495bad90
Add dummy tests for legacy_browser plugin
1 files added
1 files modified
24 ■■■■■ changed files
plugins/legacy_browser/tests/LegacyBrowser.php 23 ●●●●● patch | view | raw | blame | history
tests/phpunit.xml 1 ●●●● patch | view | raw | blame | history
plugins/legacy_browser/tests/LegacyBrowser.php
New file
@@ -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);
    }
}
tests/phpunit.xml
@@ -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>