Skip to content

Commit

Permalink
Update InsertTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDevick committed Oct 31, 2021
1 parent 0c4944d commit 25f5947
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/InsertTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -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"]));
Expand Down

0 comments on commit 25f5947

Please sign in to comment.