Renamed DatasetAlreadyExists exception

This commit is contained in:
Fabio Ivona
2022-09-22 11:01:31 +02:00
parent 98b04632ce
commit db00fc8c09
3 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
<?php
use Pest\Exceptions\DatasetAlreadyExist;
use Pest\Exceptions\DatasetAlreadyExists;
use Pest\Exceptions\DatasetDoesNotExist;
use Pest\Plugin;
use Pest\Repositories\DatasetsRepository;
@ -18,7 +18,7 @@ it('throws exception if dataset does not exist', function () {
it('throws exception if dataset already exist', function () {
DatasetsRepository::set('second', [[]], __DIR__);
$this->expectException(DatasetAlreadyExist::class);
$this->expectException(DatasetAlreadyExists::class);
$this->expectExceptionMessage('A dataset with the name `second` already exist in scope ['.__DIR__.'].');
DatasetsRepository::set('second', [[]], __DIR__);
});