test invalid pdf params
This commit is contained in:
parent
8c8ee4c050
commit
d48c854e42
2 changed files with 28 additions and 6 deletions
|
|
@ -63,10 +63,10 @@ class GetElementPdfTest extends TestCase
|
|||
);
|
||||
}
|
||||
|
||||
public function testInvalidFolderThrowsNotFound(): void
|
||||
public function testInvalidFolderThrowsBadRequest(): void
|
||||
{
|
||||
$this->expectException(NotFoundException::class);
|
||||
$this->expectExceptionMessage('PDF not found');
|
||||
$this->expectException(BadRequestException::class);
|
||||
$this->expectExceptionMessage('folder is invalid');
|
||||
|
||||
$this->useCase->execute(new GetElementPdfRequest(
|
||||
folder: 'archive',
|
||||
|
|
@ -96,10 +96,10 @@ class GetElementPdfTest extends TestCase
|
|||
));
|
||||
}
|
||||
|
||||
public function testInvalidFileNameThrowsNotFound(): void
|
||||
public function testInvalidFileNameThrowsBadRequest(): void
|
||||
{
|
||||
$this->expectException(NotFoundException::class);
|
||||
$this->expectExceptionMessage('PDF not found');
|
||||
$this->expectException(BadRequestException::class);
|
||||
$this->expectExceptionMessage('fileName is invalid');
|
||||
|
||||
$this->useCase->execute(new GetElementPdfRequest(
|
||||
folder: 'short',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue