diff --git a/composer.json b/composer.json index f424716..d4c3260 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,8 @@ }, "require-dev": { "mockery/mockery": "dev-master", - "phpunit/phpunit": "4.8.*" + "phpunit/phpunit": "4.8.*", + "illuminate/support": "^5.1" }, "autoload": { "psr-4": { @@ -24,4 +25,4 @@ } }, "minimum-stability": "stable" -} \ No newline at end of file +} diff --git a/src/Facades/Exchange.php b/src/Facades/Exchange.php index a60c61c..50f5f93 100644 --- a/src/Facades/Exchange.php +++ b/src/Facades/Exchange.php @@ -14,6 +14,9 @@ class Exchange extends Facade * * @return string */ - protected static function getFacadeAccessor() { return 'exchange'; } + protected static function getFacadeAccessor() + { + return \Fadion\Fixerio\Exchange::class; + } -} \ No newline at end of file +} diff --git a/tests/LaravelIntegrationTest.php b/tests/LaravelIntegrationTest.php new file mode 100644 index 0000000..8dc064f --- /dev/null +++ b/tests/LaravelIntegrationTest.php @@ -0,0 +1,18 @@ +provides(); + + $app = array_combine($provides, $provides); + + Facade::setFacadeApplication($app); + + $this->assertContains(Facade::getFacadeRoot(), $provides); + } +}