This repository was archived by the owner on May 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +43
-18
lines changed Expand file tree Collapse file tree 7 files changed +43
-18
lines changed Original file line number Diff line number Diff line change 32
32
- name : Directory Permissions
33
33
run : chmod -R 777 storage bootstrap/cache
34
34
- name : Execute tests (Unit and Feature tests) via PHPUnit
35
- env :
36
- DB_CONNECTION : sqlite
37
- DB_DATABASE : database/database.sqlite
38
35
run : vendor/bin/phpunit
Original file line number Diff line number Diff line change 2
2
3
3
return [
4
4
5
+ /*
6
+ |--------------------------------------------------------------------------
7
+ | Application Name
8
+ |--------------------------------------------------------------------------
9
+ |
10
+ | This value is the name of your application. This value is used when the
11
+ | framework needs to place the application's name in a notification or
12
+ | any other location as required by the application or its packages.
13
+ |
14
+ */
15
+
16
+ 'name ' => env ('APP_NAME ' , 'Laravel ' ),
17
+
18
+ /*
19
+ |--------------------------------------------------------------------------
20
+ | Application Environment
21
+ |--------------------------------------------------------------------------
22
+ |
23
+ | This value determines the "environment" your application is currently
24
+ | running in. This may determine how you prefer to configure various
25
+ | services the application utilizes. Set this in your ".env" file.
26
+ |
27
+ */
28
+
29
+ 'env ' => env ('APP_ENV ' , 'production ' ),
30
+
5
31
/*
6
32
|--------------------------------------------------------------------------
7
33
| Application Debug Mode
Original file line number Diff line number Diff line change 23
23
<server name =" BCRYPT_ROUNDS" value =" 4" />
24
24
<server name =" CACHE_DRIVER" value =" array" />
25
25
<server name =" SESSION_DRIVER" value =" array" />
26
- <server name =" QUEUE_DRIVER " value =" sync" />
26
+ <server name =" QUEUE_CONNECTION " value =" sync" />
27
27
<server name =" DB_CONNECTION" value =" testing" />
28
28
</php >
29
29
</phpunit >
Original file line number Diff line number Diff line change 1
1
<?php
2
+ namespace Tests ;
3
+
2
4
use Illuminate \Foundation \Testing \WithoutMiddleware ;
3
5
use Illuminate \Foundation \Testing \DatabaseMigrations ;
4
6
use Illuminate \Foundation \Testing \DatabaseTransactions ;
5
7
use App \VacationProperty ;
6
8
use App \Reservation ;
7
9
use App \User ;
8
10
use Twilio \Rest \Client ;
11
+ use Mockery ;
12
+ use SimpleXMLElement ;
9
13
10
14
class ReservationControllerTest extends TestCase
11
15
{
Original file line number Diff line number Diff line change 1
1
<?php
2
+ namespace Tests ;
2
3
3
- class TestCase extends Illuminate \Foundation \Testing \TestCase
4
+ use Illuminate \Foundation \Testing \TestCase as BaseTestCase ;
5
+ use Illuminate \Contracts \Console \Kernel ;
6
+ use Illuminate \Foundation \Testing \DatabaseMigrations ;
7
+
8
+ class TestCase extends BaseTestCase
4
9
{
10
+ use DatabaseMigrations;
5
11
/**
6
12
* The base URL to use while testing the application.
7
13
*
@@ -18,20 +24,8 @@ public function createApplication()
18
24
{
19
25
$ app = require __DIR__ .'/../bootstrap/app.php ' ;
20
26
21
- $ app ->make (Illuminate \ Contracts \ Console \ Kernel::class)->bootstrap ();
27
+ $ app ->make (Kernel::class)->bootstrap ();
22
28
23
29
return $ app ;
24
30
}
25
-
26
- protected function setUp (): void
27
- {
28
- parent ::setUp ();
29
- Artisan::call ('migrate ' );
30
- }
31
-
32
- protected function tearDown (): void
33
- {
34
- Artisan::call ('migrate:reset ' );
35
- parent ::tearDown ();
36
- }
37
31
}
Original file line number Diff line number Diff line change 1
1
<?php
2
+ namespace Tests ;
3
+
2
4
use Illuminate \Foundation \Testing \WithoutMiddleware ;
3
5
use Illuminate \Foundation \Testing \DatabaseMigrations ;
4
6
use Illuminate \Foundation \Testing \DatabaseTransactions ;
Original file line number Diff line number Diff line change 1
1
<?php
2
+ namespace Tests ;
3
+
2
4
use Illuminate \Foundation \Testing \WithoutMiddleware ;
3
5
use Illuminate \Foundation \Testing \DatabaseMigrations ;
4
6
use Illuminate \Foundation \Testing \DatabaseTransactions ;
You can’t perform that action at this time.
0 commit comments