Skip to content

Commit

Permalink
Rearrange tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Feb 2, 2024
1 parent d442aae commit 440fab9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tests/AbstractSchemaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,6 @@ public function testGetDataType(): void
fclose($fp);
}

public function testIsReadQuery(): void
{
$this->assertTrue(DbStringHelper::isReadQuery('SELECT * FROM tbl'));
$this->assertTrue(DbStringHelper::isReadQuery('SELECT * FROM tbl WHERE id=1'));
$this->assertTrue(DbStringHelper::isReadQuery('SELECT * FROM tbl WHERE id=1 LIMIT 1'));
$this->assertTrue(DbStringHelper::isReadQuery('SELECT * FROM tbl WHERE id=1 LIMIT 1 OFFSET 1'));
}

public function testRefresh(): void
{
$db = $this->getConnection();
Expand Down
8 changes: 8 additions & 0 deletions tests/Db/Helper/DbStringHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ public function testBaseName(): void
$this->assertSame('TestCase', DbStringHelper::baseName('TestCase'));
}

public function testIsReadQuery(): void
{
$this->assertTrue(DbStringHelper::isReadQuery('SELECT * FROM tbl'));
$this->assertTrue(DbStringHelper::isReadQuery('SELECT * FROM tbl WHERE id=1'));
$this->assertTrue(DbStringHelper::isReadQuery('SELECT * FROM tbl WHERE id=1 LIMIT 1'));
$this->assertTrue(DbStringHelper::isReadQuery('SELECT * FROM tbl WHERE id=1 LIMIT 1 OFFSET 1'));
}

public static function pascalCaseToIdProvider(): array
{
return [
Expand Down

0 comments on commit 440fab9

Please sign in to comment.