File tree 3 files changed +21
-4
lines changed
3 files changed +21
-4
lines changed Original file line number Diff line number Diff line change 30
30
"require-dev" : {
31
31
"orchestra/testbench" : " ~3.0" ,
32
32
"satooshi/php-coveralls" : " ~0.6" ,
33
- "phpunit/phpunit" : " ~4.5"
33
+ "fzaninotto/faker" : " ~1.4" ,
34
+ "mockery/mockery" : " 0.9.*" ,
35
+ "phpunit/phpunit" : " ~5.0" ,
36
+ "symfony/css-selector" : " 3.1.*" ,
37
+ "symfony/dom-crawler" : " 3.1.*" ,
38
+ "doctrine/dbal" : " ^2.5" ,
39
+ "laravel/laravel" : " ^5.3"
34
40
},
35
41
"autoload" : {
36
42
"psr-4" : {
37
- "Geocoder\\ Laravel\\ " : " src/" ,
38
- "Geocoder\\ Laravel\\ Tests\\ " : " tests/"
43
+ "Geocoder\\ Laravel\\ " : " src/"
39
44
}
40
45
},
41
46
"autoload-dev" : {
42
47
"psr-4" : {
48
+ "App\\ " : " vendor/laravel/laravel/app/" ,
43
49
"Geocoder\\ Laravel\\ Tests\\ " : " tests/"
44
50
}
45
51
},
Original file line number Diff line number Diff line change 21
21
<directory >./src/</directory >
22
22
</whitelist >
23
23
</filter >
24
+ <php >
25
+ <env name =" APP_KEY" value =" base64:Xgs1LQt1GdVHhD6qyYCXnyq61DE3UKqJ5k2SJc+Nw2g=" />
26
+ <env name =" APP_ENV" value =" testing" />
27
+ <env name =" CACHE_DRIVER" value =" array" />
28
+ <env name =" SESSION_DRIVER" value =" array" />
29
+ <env name =" QUEUE_DRIVER" value =" sync" />
30
+ <env name =" DB_CONNECTION" value =" sqlite" />
31
+ <env name =" DB_DATABASE" value =" :memory:" />
32
+ </php >
24
33
</phpunit >
Original file line number Diff line number Diff line change 1
1
<?php namespace Geocoder \Laravel \Tests \Laravel5_3 ;
2
2
3
+ use Geocoder \Laravel \Providers \GeocoderService ;
3
4
use Illuminate \Contracts \Console \Kernel ;
4
5
use Illuminate \Foundation \Application ;
5
6
use Illuminate \Foundation \Testing \TestCase as BaseTestCase ;
@@ -16,8 +17,9 @@ abstract class TestCase extends BaseTestCase
16
17
17
18
public function createApplication () : Application
18
19
{
19
- $ app = require __DIR__ . '/../../../../.. /bootstrap/app.php ' ;
20
+ $ app = require __DIR__ . '/../../vendor/laravel/laravel /bootstrap/app.php ' ;
20
21
$ app ->make (Kernel::class)->bootstrap ();
22
+ $ app ->register (GeocoderService::class);
21
23
22
24
return $ app ;
23
25
}
You can’t perform that action at this time.
0 commit comments