diff --git a/tests/InsertTest.php b/tests/InsertTest.php index 178b480..36553cd 100644 --- a/tests/InsertTest.php +++ b/tests/InsertTest.php @@ -3,6 +3,7 @@ use PHPUnit\Framework\TestCase; use DinoDev\MySql\Classes\MySql; use DinoDev\MySql\Classes\Insert; +use DinoDev\MySql\Classes\Create; require_once __DIR__ . "/../vendor/autoload.php"; @@ -20,7 +21,8 @@ protected function setUp(): void public function testInsert() { //Create a Temporary Table - $this->MySql->queryAndFetch("CREATE TABLE IF NOT EXISTS TempTable ( TestValue varchar(50) )"); + $Create = new Create($this->MySql); + $Create->Table("TempTable", ["TestValue"], ["varchar(50)"]); //Insert $this->assertTrue($this->Insert->Insert("TempTable", ["TestValue"], ["Hello"]));