-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Matt Friedman <[email protected]>
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
/** | ||
* | ||
* Advertisement management. An extension for the phpBB Forum Software package. | ||
* | ||
* @copyright (c) 2022 phpBB Limited <https://www.phpbb.com> | ||
* @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()); | ||
} | ||
} |