Create database connection using configuration then do a test
This commit is contained in:
18
_tests/unit/ModelTest.php
Normal file
18
_tests/unit/ModelTest.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
namespace Core;
|
||||
|
||||
// use Model;
|
||||
|
||||
class ModelTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
*
|
||||
* @test
|
||||
*/
|
||||
public function createNewTableWorkSuccess()
|
||||
{
|
||||
$model = new Model();
|
||||
$this->assertTrue($model->createTable());
|
||||
$this->assertTrue($model->dropTable());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user