Skip to content

Commit

Permalink
Change expectErrorMessage to expectExceptionMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
msmakouz committed Dec 14, 2023
1 parent 792254f commit 24a9f10
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/src/Commands/MakePresetCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Preset/PresetRegistryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion tests/src/WorkersRegistryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 24a9f10

Please sign in to comment.