diff --git a/tests/src/Commands/MakePresetCommandTest.php b/tests/src/Commands/MakePresetCommandTest.php index 390f424..ffa10da 100644 --- a/tests/src/Commands/MakePresetCommandTest.php +++ b/tests/src/Commands/MakePresetCommandTest.php @@ -16,7 +16,7 @@ final class MakePresetCommandTest extends TestCase public function testNotFoundPresetShouldShowErrorMessage(): void { $this->expectException(PresetNotFoundException::class); - $this->expectErrorMessage('Preset with given name [foo] is not defined.'); + $this->expectExceptionMessage('Preset with given name [foo] is not defined.'); $this->runCommand('temporal:make-preset', ['preset' => 'foo', 'name' => ' bar']); } diff --git a/tests/src/Preset/PresetRegistryTest.php b/tests/src/Preset/PresetRegistryTest.php index 9de2db6..c498c17 100644 --- a/tests/src/Preset/PresetRegistryTest.php +++ b/tests/src/Preset/PresetRegistryTest.php @@ -27,7 +27,7 @@ public function testRegister(): void public function testNotFoundPresetShouldThrowAnException(): void { $this->expectException(PresetNotFoundException::class); - $this->expectErrorMessage('Preset with given name [foo] is not defined.'); + $this->expectExceptionMessage('Preset with given name [foo] is not defined.'); $registry = new PresetRegistry(); diff --git a/tests/src/WorkersRegistryTest.php b/tests/src/WorkersRegistryTest.php index 1b5879a..e725998 100644 --- a/tests/src/WorkersRegistryTest.php +++ b/tests/src/WorkersRegistryTest.php @@ -40,7 +40,7 @@ public function testRegisterWorker(): void public function testRegisterWorkerWithExistsName(): void { $this->expectException(WorkersRegistryException::class); - $this->expectErrorMessage('Temporal worker with given name `foo` has already been registered.'); + $this->expectExceptionMessage('Temporal worker with given name `foo` has already been registered.'); $registry = new WorkersRegistry( $this->createMock(WorkerFactoryInterface::class),