28 lines
494 B
PHP
28 lines
494 B
PHP
<?php
|
|
|
|
namespace Tests\Support\Helper;
|
|
|
|
use Codeception\Module;
|
|
use Leantime\Core\Application;
|
|
|
|
class Api extends Module
|
|
{
|
|
protected Application $app;
|
|
|
|
public function _initialize()
|
|
{
|
|
$this->app = require dirname(__DIR__, 2).'/bootstrap.php';
|
|
|
|
}
|
|
|
|
public function getApplication(): Application
|
|
{
|
|
return $this->app;
|
|
}
|
|
|
|
public function haveHttpHeader($header, $value)
|
|
{
|
|
$this->getModule('REST')->haveHttpHeader($header, $value);
|
|
}
|
|
}
|