mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
Adds done
This commit is contained in:
@ -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).
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user