Update namespaces
This commit is contained in:
16
tests/MySQLUpdateTest.php
Normal file
16
tests/MySQLUpdateTest.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class MySQLUpdateTest extends TestCase
|
||||
{
|
||||
public function testBaseQuery(): void
|
||||
{
|
||||
$query = new Database\Implement\Query\MySQL\Update();
|
||||
$query->table('test_table');
|
||||
$query->set('column1 = 0');
|
||||
|
||||
$expected = "UPDATE TABLE `test_table` SET column1 = 0";
|
||||
|
||||
$this->assertEquals($expected, "{$query}");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user