Skip to content

Commit fdc62b5

Browse files
authored
Merge pull request #307 from shalvah/update-tests
Fix tests
2 parents 91d1191 + f923227 commit fdc62b5

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ composer.lock
33
.php_cs.cache
44
/vendor/
55
/public
6+
.idea/
7+
coverage.xml
8+
results.xml

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ before_script:
1010
- travis_retry composer install --prefer-dist --no-interaction
1111

1212
script:
13-
- vendor/bin/phpunit --coverage-clover=coverage.xml
13+
- composer test-ci
1414

1515
before_install:
1616
- pip install --user codecov
1717

1818
after_success:
19-
- codecov
19+
- codecov

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
"Mpociot\\ApiDoc\\Tests\\": "tests/"
3939
}
4040
},
41+
"scripts": {
42+
"test-ci": "phpunit --coverage-clover=coverage.xml"
43+
},
4144
"extra": {
4245
"laravel": {
4346
"providers": [

tests/GenerateDocumentationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ protected function getPackageProviders($app)
5151
public function testConsoleCommandNeedsAPrefixOrRoute()
5252
{
5353
$output = $this->artisan('api:generate');
54-
$this->assertEquals('You must provide either a route prefix or a route or a middleware to generate the documentation.'.PHP_EOL, $output);
54+
$this->assertEquals('You must provide either a route prefix, a route domain, a route or a middleware to generate the documentation.'.PHP_EOL, $output);
5555
}
5656

5757
public function testConsoleCommandDoesNotWorkWithClosure()

0 commit comments

Comments
 (0)