OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
39
tests/Support/Helper/Unit.php
Normal file
39
tests/Support/Helper/Unit.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Support\Helper;
|
||||
|
||||
use Codeception\Module;
|
||||
use Leantime\Core\Application;
|
||||
|
||||
class Unit extends Module
|
||||
{
|
||||
/**
|
||||
* @var Application
|
||||
*/
|
||||
protected $app;
|
||||
|
||||
public function _initialize()
|
||||
{
|
||||
$this->app = bootstrap_minimal_app();
|
||||
}
|
||||
|
||||
public function getApplication()
|
||||
{
|
||||
return $this->app;
|
||||
}
|
||||
|
||||
public function haveInDatabase($table, array $data)
|
||||
{
|
||||
return $this->getModule('Db')->haveInDatabase($table, $data);
|
||||
}
|
||||
|
||||
public function seeInDatabase($table, array $criteria)
|
||||
{
|
||||
return $this->getModule('Db')->seeInDatabase($table, $criteria);
|
||||
}
|
||||
|
||||
public function dontSeeInDatabase($table, array $criteria)
|
||||
{
|
||||
return $this->getModule('Db')->dontSeeInDatabase($table, $criteria);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user