Skip to content

Commit

Permalink
set lument version to 5.4.*
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkaOnLine committed Sep 7, 2017
1 parent a8b45a0 commit 9a1543d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
18 changes: 18 additions & 0 deletions tests/CommandsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);
}
}

0 comments on commit 9a1543d

Please sign in to comment.