mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Added tests for ProjectBuildRequest
This commit is contained in:
parent
f9dfb37273
commit
eaef115d4b
2 changed files with 181 additions and 0 deletions
|
@ -50,6 +50,10 @@ final class ProjectBuildRequest
|
|||
*/
|
||||
public function __construct(Project $project, int $number_of_builds)
|
||||
{
|
||||
if ($number_of_builds < 1) {
|
||||
throw new \InvalidArgumentException('Number of builds must be at least 1!');
|
||||
}
|
||||
|
||||
$this->project = $project;
|
||||
$this->number_of_builds = $number_of_builds;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue