-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #418 from mudhoney/fix/no-action-found-errors
Fix all no action found sentry errors
- Loading branch information
Showing
5 changed files
with
49 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php declare(strict_types=1); | ||
|
||
/** | ||
* @author Kasim Necdet Percinel <[email protected]> | ||
*/ | ||
|
||
use PHPUnit\Framework\TestCase; | ||
use GuzzleHttp\Client; | ||
|
||
final class SentryIssue1Test extends TestCase | ||
{ | ||
/** | ||
* @group regression | ||
* @group integration | ||
**/ | ||
public function testItShouldDumpProperResponseCodeAndReasonPhraseIfThereIsNoActionGiven(): void | ||
{ | ||
//Create a Guzzle client | ||
$client = new Client(); | ||
|
||
// Send a GET request to the specified URL | ||
$response = $client->get(HV_WEB_ROOT_URL, [ | ||
'http_errors' => false | ||
]); | ||
|
||
// Assert Status code and Reason Phrase | ||
$this->assertEquals($response->getStatusCode(), 400); | ||
$this->assertEquals($response->getReasonPhrase(), 'Bad Request'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters