Skip to content

Commit

Permalink
Update tests, ignore IDE files
Browse files Browse the repository at this point in the history
  • Loading branch information
shalvah committed Sep 9, 2018
1 parent 3e21c5f commit f923227
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ composer.lock
.php_cs.cache
/vendor/
/public
.idea/
coverage.xml
results.xml
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ before_script:
- travis_retry composer install --prefer-dist --no-interaction

script:
- vendor/bin/phpunit --coverage-clover=coverage.xml
- composer test-ci

before_install:
- pip install --user codecov

after_success:
- codecov
- codecov
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
"Mpociot\\ApiDoc\\Tests\\": "tests/"
}
},
"scripts": {
"test-ci": "phpunit --coverage-clover=coverage.xml"
},
"extra": {
"laravel": {
"providers": [
Expand Down
2 changes: 1 addition & 1 deletion tests/GenerateDocumentationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected function getPackageProviders($app)
public function testConsoleCommandNeedsAPrefixOrRoute()
{
$output = $this->artisan('api:generate');
$this->assertEquals('You must provide either a route prefix or a route or a middleware to generate the documentation.'.PHP_EOL, $output);
$this->assertEquals('You must provide either a route prefix, a route domain, a route or a middleware to generate the documentation.'.PHP_EOL, $output);
}

public function testConsoleCommandDoesNotWorkWithClosure()
Expand Down

0 comments on commit f923227

Please sign in to comment.