test bulk create nodes throws if count is less than one

This commit is contained in:
Yisroel Baum 2026-04-19 23:36:18 +03:00
parent 2d19265c24
commit 32bf96dd99
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -184,4 +184,17 @@ class BulkCreateNodesTest extends TestCase
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,
));
}
}