Adds done

This commit is contained in:
Nuno Maduro
2024-08-10 14:27:18 +01:00
parent 86f46c2efd
commit ad6dca94fa
4 changed files with 54 additions and 2 deletions

View File

@ -384,6 +384,34 @@ final class TestCall
return $this;
}
/**
* Sets the test as "done".
*/
public function done(// @phpstan-ignore-line
array|string|null $note = null,
array|string|null $assignee = null,
array|string|null $issue = null,
array|string|null $pr = null,
): self {
if ($issue !== null) {
$this->issue($issue);
}
if ($pr !== null) {
$this->pr($pr);
}
if ($assignee !== null) {
$this->assignee($assignee);
}
if ($note !== null) {
$this->note($note);
}
return $this;
}
/**
* Associates the test with the given issue(s).
*