Skip to content

Commit

Permalink
OXDEV-9043 Remove error in legacy DB test
Browse files Browse the repository at this point in the history
  • Loading branch information
liulka-oxid committed Jan 21, 2025
1 parent 2ce91c5 commit 0fd4852
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,19 @@ public static function setUpBeforeClass(): void

public static function tearDownAfterClass(): void
{
self::getDatabaseHandler()->exec('DROP TABLE ' . self::TABLE_NAME . ';');
self::getDatabaseHandler()->exec('DROP TABLE IF EXISTS ' . self::TABLE_NAME . ';');

parent::tearDownAfterClass();
}

public function setUp(): void
{
parent::setUp();

/** Set a user-defined error handler in order to handle errors triggered with trigger_error */
$this->errors = [];
set_error_handler($this->errorHandler(...));

parent::setUp();

$this->initializeDatabase();
$this->truncateTestTable();
$this->assureTestTableIsEmpty();
Expand Down

0 comments on commit 0fd4852

Please sign in to comment.