This repository was archived by the owner on Jan 18, 2018. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 "illuminate/support" : " 5.0.*|5.1.*"
1717 },
1818 "require-dev" : {
19- "graham-campbell/testbench" : " ~2.1"
19+ "graham-campbell/testbench" : " ~3.0" ,
20+ "mockery/mockery" : " ^0.9.4" ,
21+ "phpunit/phpunit" : " ^4.7.6"
2022 },
2123 "autoload" : {
2224 "psr-4" : {
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ protected function registerNavigation()
6060 return $ navigation ;
6161 });
6262
63- $ this ->app ->alias ('navigation ' , ' GrahamCampbell\ Navigation\Navigation ' );
63+ $ this ->app ->alias ('navigation ' , Navigation::class );
6464 }
6565
6666 /**
Original file line number Diff line number Diff line change 1212namespace GrahamCampbell \Tests \Navigation ;
1313
1414use GrahamCampbell \TestBench \AbstractPackageTestCase ;
15+ use GrahamCampbell \Navigation \NavigationServiceProvider ;
1516
1617/**
1718 * This is the abstract test case class.
@@ -29,6 +30,6 @@ abstract class AbstractTestCase extends AbstractPackageTestCase
2930 */
3031 protected function getServiceProviderClass ($ app )
3132 {
32- return ' GrahamCampbell\Navigation\ NavigationServiceProvider' ;
33+ return NavigationServiceProvider::class ;
3334 }
3435}
Original file line number Diff line number Diff line change 1111
1212namespace GrahamCampbell \Tests \Navigation \Facades ;
1313
14- use GrahamCampbell \TestBench \ Traits \ FacadeTestCaseTrait ;
14+ use GrahamCampbell \TestBenchCore \ FacadeTrait ;
1515use GrahamCampbell \Tests \Navigation \AbstractTestCase ;
16+ use GrahamCampbell \Navigation \Facades \Navigation as NavigationFacade ;
17+ use GrahamCampbell \Navigation \Navigation ;
1618
1719/**
1820 * This is the navigation facade test class.
2123 */
2224class NavigationTest extends AbstractTestCase
2325{
24- use FacadeTestCaseTrait ;
26+ use FacadeTrait ;
2527
2628 /**
2729 * Get the facade accessor.
@@ -40,7 +42,7 @@ protected function getFacadeAccessor()
4042 */
4143 protected function getFacadeClass ()
4244 {
43- return ' GrahamCampbell\Navigation\Facades\Navigation ' ;
45+ return NavigationFacade::class ;
4446 }
4547
4648 /**
@@ -50,6 +52,6 @@ protected function getFacadeClass()
5052 */
5153 protected function getFacadeRoot ()
5254 {
53- return ' GrahamCampbell\ Navigation\Navigation ' ;
55+ return Navigation::class ;
5456 }
5557}
Original file line number Diff line number Diff line change 1111
1212namespace GrahamCampbell \Tests \Navigation ;
1313
14- use GrahamCampbell \TestBench \Traits \ServiceProviderTestCaseTrait ;
14+ use GrahamCampbell \TestBenchCore \ServiceProviderTrait ;
15+ use GrahamCampbell \Navigation \Navigation ;
1516
1617/**
1718 * This is the service provider test class.
2021 */
2122class ServiceProviderTest extends AbstractTestCase
2223{
23- use ServiceProviderTestCaseTrait ;
24+ use ServiceProviderTrait ;
2425
2526 public function testNavigationIsInjectable ()
2627 {
27- $ this ->assertIsInjectable (' GrahamCampbell\ Navigation\Navigation ' );
28+ $ this ->assertIsInjectable (Navigation::class );
2829 }
2930}
You can’t perform that action at this time.
0 commit comments