Skip to content

Commit

Permalink
Add unit tests for Version::save and refactor common test setups
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed Jun 19, 2024
1 parent 40b9522 commit b6a949b
Show file tree
Hide file tree
Showing 2 changed files with 232 additions and 85 deletions.
2 changes: 1 addition & 1 deletion src/Content/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public function save(
bool $overwrite = false
): void {
match (true) {
$this->exists() === false
$this->exists($language) === false
=> $this->create($fields, $language),
$overwrite === true
=> $this->replace($fields, $language),
Expand Down
Loading

0 comments on commit b6a949b

Please sign in to comment.