Skip to content

Commit f0ddbc6

Browse files
committed
Orchestra TestBench added
1 parent 616d858 commit f0ddbc6

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
},
4242
"autoload": {
4343
"psr-4": {
44-
"Uepg\\LaravelSybase\\": "src/"
44+
"Uepg\\LaravelSybase\\": "src/",
45+
"Tests\\": "tests/"
4546
}
4647
},
4748
"scripts": {

tests/TestCase.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
3+
namespace Tests;
4+
5+
use Illuminate\Foundation\Application;
6+
use Illuminate\Support\ServiceProvider;
7+
8+
class TestCase extends \Orchestra\Testbench\TestCase
9+
{
10+
/**
11+
* Get package providers.
12+
*
13+
* @param Application $app
14+
*
15+
* @return array<int, class-string<ServiceProvider>>
16+
*/
17+
protected function getPackageProviders($app)
18+
{
19+
return ['SybaseServiceProvider',];
20+
}
21+
22+
/**
23+
* Ignore package discovery from.
24+
*
25+
* @return array<int, string>
26+
*/
27+
public function ignorePackageDiscoveriesFrom()
28+
{
29+
return [];
30+
}
31+
32+
33+
}

0 commit comments

Comments
 (0)