From c7f8430011741a7857a311351c4f6b519906a9cd Mon Sep 17 00:00:00 2001 From: Darius Matulionis Date: Mon, 12 Feb 2018 07:04:54 +0000 Subject: [PATCH 1/2] Apply fixes from StyleCI [ci skip] [skip ci] --- tests/ConsoleTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ConsoleTest.php b/tests/ConsoleTest.php index 9701513..2c81ea9 100644 --- a/tests/ConsoleTest.php +++ b/tests/ConsoleTest.php @@ -29,6 +29,6 @@ public function canPublish() Artisan::call('vendor:publish', ['--provider' => "'L5Swagger\L5SwaggerServiceProvider'"]); $this->assertTrue(file_exists(config_path('l5-swagger.php'))); - $this->assertTrue(file_exists(config('l5-swagger.paths.views') . '/index.blade.php')); + $this->assertTrue(file_exists(config('l5-swagger.paths.views').'/index.blade.php')); } } From fa8256846b6941de73f12262c1b25aa3618cf587 Mon Sep 17 00:00:00 2001 From: Darius Matulionis Date: Mon, 12 Feb 2018 09:42:43 +0200 Subject: [PATCH 2/2] Travis update and publish command fix --- .travis.yml | 4 ++-- tests/ConsoleTest.php | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index d4c617a..d5166c0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,8 +28,8 @@ script: - chown -R travis:travis /home/travis/build/DarkaOnLine/L5-Swagger - mkdir -p tests/storage/logs/test-reports - chmod -R 777 /home/travis/build/DarkaOnLine/L5-Swagger - - vendor/bin/phpunit - - cp tests/storage/logs/test-reports/clover.xml clover.xml + - if [ $REPORT_TESTS_COVERAGE != 1 ]; then vendor/bin/phpunit --no-coverage; fi + - if [ $REPORT_TESTS_COVERAGE == 1 ]; then vendor/bin/phpunit; cp tests/storage/logs/test-reports/clover.xml clover.xml; fi after_success: - if [ $REPORT_TESTS_COVERAGE == 1 ] && [ $TRAVIS_PULL_REQUEST == "false" ]; then ./cc-test-reporter after-build -t clover --exit-code $TRAVIS_TEST_RESULT; fi - if [ $REPORT_TESTS_COVERAGE == 1 ]; then php vendor/bin/coveralls -v; fi diff --git a/tests/ConsoleTest.php b/tests/ConsoleTest.php index 2c81ea9..cdba022 100644 --- a/tests/ConsoleTest.php +++ b/tests/ConsoleTest.php @@ -24,9 +24,7 @@ public function canGenerate() /** @test */ public function canPublish() { - $this->setAnnotationsPath(); - - Artisan::call('vendor:publish', ['--provider' => "'L5Swagger\L5SwaggerServiceProvider'"]); + Artisan::call('vendor:publish', ['--provider' => 'L5Swagger\L5SwaggerServiceProvider']); $this->assertTrue(file_exists(config_path('l5-swagger.php'))); $this->assertTrue(file_exists(config('l5-swagger.paths.views').'/index.blade.php'));