mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
Renamed DatasetAlreadyExists exception
This commit is contained in:
@ -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__);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user