mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
테스트 설정 정리
This commit is contained in:
parent
91497fd77b
commit
b1e730d17e
16 changed files with 224 additions and 2388 deletions
|
|
@ -1,10 +0,0 @@
|
|||
<?php
|
||||
namespace Codeception\Module;
|
||||
|
||||
// here you can define custom actions
|
||||
// all public methods declared in helper class will be available in $I
|
||||
|
||||
class AcceptanceHelper extends \Codeception\Module
|
||||
{
|
||||
|
||||
}
|
||||
24
tests/_support/DbDropTablesHelper.php
Normal file
24
tests/_support/DbDropTablesHelper.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
namespace Codeception\Module;
|
||||
|
||||
class DbDropTablesHelper extends \Codeception\Module\Db
|
||||
{
|
||||
protected $requiredFields = [];
|
||||
|
||||
public function cleanup()
|
||||
{
|
||||
$dbh = $this->driver->getDbh();
|
||||
if (!$dbh) {
|
||||
throw new ModuleConfigException(
|
||||
__CLASS__,
|
||||
"No connection to database. Remove this module from config if you don't need database repopulation"
|
||||
);
|
||||
}
|
||||
|
||||
try {
|
||||
$this->driver->cleanup();
|
||||
} catch (\Exception $e) {
|
||||
throw new ModuleException(__CLASS__, $e->getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
<?php
|
||||
namespace Codeception\Module;
|
||||
|
||||
// here you can define custom actions
|
||||
// all public methods declared in helper class will be available in $I
|
||||
|
||||
class FunctionalHelper extends \Codeception\Module
|
||||
{
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue