Skip to content
This repository was archived by the owner on Jan 18, 2018. It is now read-only.

Commit 3c6b8d1

Browse files
Cleanup
1 parent 63a376a commit 3c6b8d1

5 files changed

Lines changed: 16 additions & 10 deletions

File tree

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
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": {

src/NavigationServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
/**

tests/AbstractTestCase.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace GrahamCampbell\Tests\Navigation;
1313

1414
use 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
}

tests/Facades/NavigationTest.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111

1212
namespace GrahamCampbell\Tests\Navigation\Facades;
1313

14-
use GrahamCampbell\TestBench\Traits\FacadeTestCaseTrait;
14+
use GrahamCampbell\TestBenchCore\FacadeTrait;
1515
use 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.
@@ -21,7 +23,7 @@
2123
*/
2224
class 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
}

tests/ServiceProviderTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111

1212
namespace 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.
@@ -20,10 +21,10 @@
2021
*/
2122
class 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
}

0 commit comments

Comments
 (0)