Create database connection using configuration then do a test

This commit is contained in:
2017-08-31 13:21:38 +07:00
parent f56503a4d4
commit 1235bd4148
3 changed files with 93 additions and 0 deletions

18
_tests/unit/ModelTest.php Normal file
View 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());
}
}