From 9a1543dc4116dec0fe96a3818ddd2df45fb3ca20 Mon Sep 17 00:00:00 2001 From: Darius Matulionis Date: Thu, 7 Sep 2017 09:33:55 +0300 Subject: [PATCH] set lument version to 5.4.* --- composer.json | 2 +- tests/CommandsTest.php | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e26f1fe..2ea6dd3 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ ], "require": { "php": ">=5.6.4", - "laravel/lumen-framework": "~5.4", + "laravel/lumen-framework": "5.4.*", "zircote/swagger-php": "~2.0", "swagger-api/swagger-ui": "^3.0" }, diff --git a/tests/CommandsTest.php b/tests/CommandsTest.php index 3bdf312..01528d8 100644 --- a/tests/CommandsTest.php +++ b/tests/CommandsTest.php @@ -36,5 +36,23 @@ public function canPublishAssets() { $this->setPaths(); Artisan::call('swagger-lume:publish'); + + $config_src = __DIR__.'/../config/swagger-lume.php'; + $config_published = __DIR__.'/config/swagger-lume.php'; + + $view_src = __DIR__.'/../resources/views/index.blade.php'; + $view_published = __DIR__.'/resources/views/vendor/swagger-lume/index.blade.php'; + + $this->assertTrue(file_exists($config_published)); + $this->assertTrue(file_exists($view_published)); + + $this->assertEquals( + file_get_contents($config_src), + file_get_contents($config_published) + ); + $this->assertEquals( + file_get_contents($view_src), + file_get_contents($view_published) + ); } }