diff --git a/tests/ext_test.php b/tests/ext_test.php new file mode 100644 index 0000000..fccfa6e --- /dev/null +++ b/tests/ext_test.php @@ -0,0 +1,42 @@ + + * @license GNU General Public License, version 2 (GPL-2.0) + * + */ + +namespace phpbb\ads\tests; + +class ext_test extends \phpbb_test_case +{ + public function test_ext() + { + /** @var \PHPUnit\Framework\MockObject\MockObject|\Symfony\Component\DependencyInjection\ContainerInterface */ + $container = $this->getMockBuilder('\Symfony\Component\DependencyInjection\ContainerInterface') + ->disableOriginalConstructor() + ->getMock(); + + /** @var \PHPUnit\Framework\MockObject\MockObject|\phpbb\finder */ + $extension_finder = $this->getMockBuilder('\phpbb\finder') + ->disableOriginalConstructor() + ->getMock(); + + /** @var \PHPUnit\Framework\MockObject\MockObject|\phpbb\db\migrator */ + $migrator = $this->getMockBuilder('\phpbb\db\migrator') + ->disableOriginalConstructor() + ->getMock(); + + $ext = new \phpbb\ads\ext( + $container, + $extension_finder, + $migrator, + 'phpbb/ads', + '' + ); + + self::assertTrue($ext->is_enableable()); + } +}