Skip to content

Commit a444ab1

Browse files
committed
test: move $this->createTableForDefault() to child classes
1 parent 956e815 commit a444ab1

6 files changed

Lines changed: 10 additions & 1 deletion

File tree

tests/system/Database/Live/AbstractGetFieldDataTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ protected function setUp(): void
3535
$this->db = Database::connect($this->DBGroup);
3636

3737
$this->createForge();
38-
$this->createTableForDefault();
3938
}
4039

4140
/**

tests/system/Database/Live/MySQLi/GetFieldDataTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ private function isOldMySQL(): bool
4848

4949
public function testGetFieldDataDefault(): void
5050
{
51+
$this->createTableForDefault();
52+
5153
$fields = $this->db->getFieldData($this->table);
5254

5355
$this->assertJsonStringEqualsJsonString(

tests/system/Database/Live/OCI8/GetFieldDataTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ protected function createForge(): void
3434

3535
public function testGetFieldDataDefault(): void
3636
{
37+
$this->createTableForDefault();
38+
3739
$fields = $this->db->getFieldData($this->table);
3840

3941
$data = [];

tests/system/Database/Live/Postgre/GetFieldDataTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ protected function createForge(): void
3434

3535
public function testGetFieldDataDefault(): void
3636
{
37+
$this->createTableForDefault();
38+
3739
$fields = $this->db->getFieldData('test1');
3840

3941
$this->assertJsonStringEqualsJsonString(

tests/system/Database/Live/SQLSRV/GetFieldDataTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ protected function createForge(): void
3434

3535
public function testGetFieldDataDefault(): void
3636
{
37+
$this->createTableForDefault();
38+
3739
$fields = $this->db->getFieldData($this->table);
3840

3941
$this->assertJsonStringEqualsJsonString(

tests/system/Database/Live/SQLite3/GetFieldDataTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ protected function createForge(): void
3838

3939
public function testGetFieldDataDefault(): void
4040
{
41+
$this->createTableForDefault();
42+
4143
$fields = $this->db->getFieldData($this->table);
4244

4345
$this->assertJsonStringEqualsJsonString(

0 commit comments

Comments
 (0)