File tree Expand file tree Collapse file tree 2 files changed +11
-13
lines changed Expand file tree Collapse file tree 2 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 3
3
use CodebarAg \Zendesk \Tests \TestCase ;
4
4
use Illuminate \Support \Facades \Event ;
5
5
6
- uses (TestCase::class)->in (__DIR__ );
7
-
8
- uses ()->beforeEach (function () {
9
- Event::fake ();
10
- })->in (__DIR__ );
11
-
12
- uses ()->beforeAll (function () {
13
- if (is_dir ('Fixtures/Saloon ' ) && count (scandir ('Fixtures/Saloon ' )) > 0 ) {
14
- config ()->set ('zendesk.subdomain ' , 'codebar-zendesk ' );
15
- config ()->set ('zendesk.auth.email_address ' , 'fake-email ' );
16
- config ()->set ('zendesk.auth.api_token ' , 'fake-token ' );
17
- }
18
- })->in (__DIR__ );
6
+ uses (TestCase::class)
7
+ ->beforeEach (function () {
8
+ Event::fake ();
9
+ })
10
+ ->in (__DIR__ );
Original file line number Diff line number Diff line change @@ -38,5 +38,11 @@ public function getEnvironmentSetUp($app): void
38
38
'database ' => ':memory: ' ,
39
39
'prefix ' => '' ,
40
40
]);
41
+
42
+ if (is_dir (__DIR__ . '/Fixtures/Saloon/ ' ) && count (scandir (__DIR__ . '/Fixtures/Saloon ' )) > 0 ) {
43
+ $ app ['config ' ]->set ('zendesk.subdomain ' , 'codebar-zendesk ' );
44
+ $ app ['config ' ]->set ('zendesk.auth.email_address ' , 'fake-email ' );
45
+ $ app ['config ' ]->set ('zendesk.auth.api_token ' , 'fake-token ' );
46
+ }
41
47
}
42
48
}
You can’t perform that action at this time.
0 commit comments