Skip to content

Commit

Permalink
Add expectExceptionMessage to WebClientTest
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarciabriseno committed Jun 20, 2024
1 parent e3bffbf commit ae83039
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit_tests/module/WebClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ public function test_saveWebClientState_invalid() {
// Set up the client
$client = new Module_WebClient($params);
$this->expectException(InvalidArgumentException::class);
$this->expectExceptionMessage("centerY");
$this->expectExceptionMessage("must match the type: number");
$client->execute();
}

Expand Down

0 comments on commit ae83039

Please sign in to comment.