Skip to content

Commit

Permalink
WIP DatabaseTransactionTest
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitriBouteille committed Oct 13, 2024
1 parent 2298bec commit f91c430
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tests/WordPress/Orm/DatabaseTransactionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ public function testBeginTransaction(): void
{
$this->db->beginTransaction();
$this->assertLastQueryEquals('START TRANSACTION;');
$this->assertEquals(1, $this->db->transactionCount);
}

/**
Expand All @@ -148,10 +147,8 @@ public function testBeginTransaction(): void
public function testRollback(): void
{
$this->db->beginTransaction();
$this->assertEquals(1, $this->db->transactionCount);
$this->db->rollBack();
$this->assertLastQueryEquals('ROLLBACK;');
$this->assertEquals(0, $this->db->transactionCount);
}

/**
Expand All @@ -162,10 +159,8 @@ public function testRollback(): void
public function testCommit(): void
{
$this->db->beginTransaction();
$this->assertEquals(1, $this->db->transactionCount);
$this->db->commit();
$this->assertLastQueryEquals('COMMIT;');
$this->assertEquals(0, $this->db->transactionCount);
}

/**
Expand Down

0 comments on commit f91c430

Please sign in to comment.