diff options
author | Hugues Hiegel <root@paranoid> | 2015-02-22 12:58:46 +0100 |
---|---|---|
committer | Hugues Hiegel <root@paranoid> | 2015-02-22 12:58:46 +0100 |
commit | b2034fdfec040a67988e543a911208ef2491ce7a (patch) | |
tree | f970dfabc63f59adac7b948cb0211d6ae926d29f /example_addressbook/tests/ExampleAddressbook.php |
New RoundCube Plugins Git folder
Diffstat (limited to 'example_addressbook/tests/ExampleAddressbook.php')
-rw-r--r-- | example_addressbook/tests/ExampleAddressbook.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/example_addressbook/tests/ExampleAddressbook.php b/example_addressbook/tests/ExampleAddressbook.php new file mode 100644 index 0000000..762ee73 --- /dev/null +++ b/example_addressbook/tests/ExampleAddressbook.php @@ -0,0 +1,23 @@ +<?php + +class ExampleAddressbook_Plugin extends PHPUnit_Framework_TestCase +{ + + function setUp() + { + include_once __DIR__ . '/../example_addressbook.php'; + } + + /** + * Plugin object construction test + */ + function test_constructor() + { + $rcube = rcube::get_instance(); + $plugin = new example_addressbook($rcube->api); + + $this->assertInstanceOf('example_addressbook', $plugin); + $this->assertInstanceOf('rcube_plugin', $plugin); + } +} + |