File tree Expand file tree Collapse file tree 4 files changed +28
-16
lines changed Expand file tree Collapse file tree 4 files changed +28
-16
lines changed Original file line number Diff line number Diff line change 17
17
],
18
18
"require" : {
19
19
"php" : " ^8.1" ,
20
- "illuminate/support" : " ^10.0|^11.0"
20
+ "illuminate/support" : " ^10.0|^11.0|^12.0 "
21
21
},
22
22
"require-dev" : {
23
- "orchestra/testbench" : " ^8 .0" ,
24
- "phpunit/phpunit" : " ^9 .0"
23
+ "orchestra/testbench" : " ^10 .0" ,
24
+ "phpunit/phpunit" : " ^11 .0"
25
25
},
26
26
"autoload" : {
27
27
"psr-4" : {
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" bootstrap =" vendor/autoload.php" backupGlobals =" false" backupStaticAttributes =" false" colors =" true" verbose =" true" convertErrorsToExceptions =" true" convertNoticesToExceptions =" true" convertWarningsToExceptions =" true" processIsolation =" false" stopOnFailure =" false" xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd" >
3
- <coverage >
4
- <include >
5
- <directory suffix =" .php" >src/</directory >
6
- </include >
7
- </coverage >
2
+ <phpunit
3
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4
+ bootstrap =" vendor/autoload.php"
5
+ backupGlobals =" false"
6
+ colors =" true"
7
+ processIsolation =" false"
8
+ stopOnFailure =" false"
9
+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd"
10
+ displayDetailsOnTestsThatTriggerDeprecations =" true"
11
+ displayDetailsOnTestsThatTriggerErrors =" true"
12
+ displayDetailsOnTestsThatTriggerNotices =" true"
13
+ displayDetailsOnTestsThatTriggerWarnings =" true"
14
+ displayDetailsOnPhpunitDeprecations =" true"
15
+ >
16
+
8
17
<testsuites >
9
18
<testsuite name =" Test Suite" >
10
19
<directory >tests</directory >
14
23
<env name =" DB_CONNECTION" value =" testing" />
15
24
<env name =" MAIL_MAILER" value =" log" />
16
25
</php >
26
+ <source >
27
+ <include >
28
+ <directory suffix =" .php" >src</directory >
29
+ </include >
30
+ </source >
17
31
</phpunit >
Original file line number Diff line number Diff line change 2
2
3
3
namespace Krisell \LaravelEmailLogger \Tests ;
4
4
5
- use Carbon \Carbon ;
6
- use Illuminate \Foundation \Auth \User ;
7
- use Illuminate \Foundation \Testing \RefreshDatabase ;
5
+ use Orchestra \Testbench \TestCase ;
8
6
use Illuminate \Support \Facades \Mail ;
7
+ use PHPUnit \Framework \Attributes \Test ;
9
8
use Krisell \LaravelEmailLogger \EmailLog ;
10
- use Krisell \ LaravelEmailLogger \ LaravelEmailLoggerServiceProvider ;
9
+ use Illuminate \ Foundation \ Testing \ RefreshDatabase ;
11
10
use Krisell \LaravelEmailLogger \Tests \TestMailable ;
12
- use Orchestra \ Testbench \ TestCase ;
11
+ use Krisell \ LaravelEmailLogger \ LaravelEmailLoggerServiceProvider ;
13
12
14
13
class ExampleTest extends TestCase
15
14
{
@@ -20,7 +19,7 @@ protected function getPackageProviders($app)
20
19
return [LaravelEmailLoggerServiceProvider::class];
21
20
}
22
21
23
- /** @test */
22
+ #[Test]
24
23
public function a_test ()
25
24
{
26
25
$ this ->assertCount (0 , EmailLog::all ());
Original file line number Diff line number Diff line change 5
5
use Illuminate \Bus \Queueable ;
6
6
use Illuminate \Mail \Mailable ;
7
7
use Illuminate \Queue \SerializesModels ;
8
- use Illuminate \Contracts \Queue \ShouldQueue ;
9
8
10
9
class TestMailable extends Mailable
11
10
{
You can’t perform that action at this time.
0 commit comments