mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-25 21:42:54 -05:00
BaseTestCase: Use Icinga Web's base test case
This commit is contained in:
parent
1d08c954ba
commit
64eb2a7f68
1 changed files with 9 additions and 9 deletions
|
|
@ -7,21 +7,21 @@ use Icinga\Application\ApplicationBootstrap;
|
|||
use Icinga\Application\Icinga;
|
||||
use Icinga\Module\Businessprocess\BpConfig;
|
||||
use Icinga\Module\Businessprocess\Storage\LegacyStorage;
|
||||
use Icinga\Module\Businessprocess\Web\FakeRequest;
|
||||
use PHPUnit_Framework_TestCase;
|
||||
|
||||
abstract class BaseTestCase extends PHPUnit_Framework_TestCase
|
||||
abstract class BaseTestCase extends \Icinga\Test\BaseTestCase
|
||||
{
|
||||
/** @var ApplicationBootstrap */
|
||||
private static $app;
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
$this->app();
|
||||
FakeRequest::setConfiguredBaseUrl('/icingaweb2/');
|
||||
parent::setUp();
|
||||
|
||||
$this->getRequestMock()->shouldReceive('getBaseUrl')->andReturn('/icingaweb2/');
|
||||
|
||||
$this->app()
|
||||
->getModuleManager()
|
||||
->loadModule('businessprocess');
|
||||
}
|
||||
|
||||
protected function emptyConfigSection()
|
||||
|
|
|
|||
Loading…
Reference in a new issue