Skip to content

Commit 0d2f1c1

Browse files
committed
Added tests for Inspector package
1 parent 969cae4 commit 0d2f1c1

File tree

9 files changed

+368
-180
lines changed

9 files changed

+368
-180
lines changed

.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,7 @@ SENTRY_LARAVEL_DSN=http://[email protected]:8000/1
5757
SENTRY_TRACES_SAMPLE_RATE=1
5858

5959
LOG_SLACK_WEBHOOK_URL=http://127.0.0.1:8000/slack
60+
61+
INSPECTOR_URL=http://127.0.0.1:8000/inspector
62+
INSPECTOR_API_KEY=test
63+
INSPECTOR_ENABLE=true

app/Mail/OrderShipped.php

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,15 @@ class OrderShipped extends Mailable
1010
{
1111
use Queueable, SerializesModels;
1212

13-
/**
14-
* Create a new message instance.
15-
*
16-
* @return void
17-
*/
18-
public function __construct()
13+
public function __construct(string $subject)
1914
{
20-
$this->subject('Hello world')
15+
$this->subject($subject)
2116
2217
->bcc(['[email protected]'])
2318
->replyTo('[email protected]', 'To name')
2419
->attach(app()->basePath('.env.example'));
2520
}
2621

27-
/**
28-
* Build the message.
29-
*
30-
* @return $this
31-
*/
3222
public function build()
3323
{
3424
return $this

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"php": "^7.3|^8.0",
99
"fruitcake/laravel-cors": "^2.0",
1010
"guzzlehttp/guzzle": "^7.0.1",
11+
"inspector-apm/inspector-laravel": "^4.7",
1112
"laravel/framework": "^8.54",
1213
"laravel/tinker": "^2.5",
1314
"sentry/sentry-laravel": "^2.8",

0 commit comments

Comments
 (0)