mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-04 14:35:49 +01:00
Added tests for ProjectBuildRequest
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user