test bulk create nodes throws if count is less than one
This commit is contained in:
parent
2d19265c24
commit
32bf96dd99
1 changed files with 13 additions and 0 deletions
|
|
@ -184,4 +184,17 @@ class BulkCreateNodesTest extends TestCase
|
||||||
count: null,
|
count: null,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function test_throws_if_count_is_less_than_one(): void
|
||||||
|
{
|
||||||
|
$this->expectException(BadRequestException::class);
|
||||||
|
$this->expectExceptionMessage('count must be at least 1');
|
||||||
|
|
||||||
|
$this->useCase->execute(new BulkCreateNodesRequest(
|
||||||
|
textId: 0,
|
||||||
|
parentNodeId: $this->parentNode->getId(),
|
||||||
|
titlePrefix: 'Page',
|
||||||
|
count: 0,
|
||||||
|
));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue