Skip to content

Commit 38db120

Browse files
committed
Use existing create method to update snapshot
1 parent 7957748 commit 38db120

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MatchesSnapshots.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ protected function updateSnapshot($type, Snapshot $snapshot, $actual)
3131
try {
3232
$this->doSnapShotAssertion($type, $snapshot, $actual);
3333
} catch (PHPUnit_Framework_ExpectationFailedException $exception) {
34-
$snapshot->update($actual);
34+
$snapshot->create($actual);
3535

3636
$this->markTestIncomplete("Snapshot updated for {$snapshot->id()}");
3737
}

0 commit comments

Comments
 (0)