Skip to content

Commit

Permalink
Fix early-return unit-test
Browse files Browse the repository at this point in the history
  • Loading branch information
fritz-gerneth committed May 15, 2018
1 parent 9205451 commit 4b93c1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/PdoSnapshotStoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ public function it_saves_multiple_snapshots_and_removes_them()
public function it_returns_early_when_no_snapshots_given()
{
$pdo = $this->prophesize(PDO::class);
$pdo->getAttribute(PDO::ATTR_DRIVER_NAME)->willReturn('pgsql'); // Driver does not matter for this test
$pdo->beginTransaction()->shouldNotBeCalled();

$snapshotStore = new PdoSnapshotStore($pdo->reveal());
Expand Down

0 comments on commit 4b93c1f

Please sign in to comment.