Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus committed Sep 24, 2020
1 parent a0c2f4a commit e48c9a1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function getReadEnv()
/**
* Fill Travis CI environment variables.
*
* "TRAVIS", "TRAVIS_JOB_ID" must be set.
* "TRAVIS", "TRAVIS_BUILD_NUMBER", TRAVIS_JOB_ID" must be set.
*
* @return $this
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/Bundle/CoverallsBundle/Api/JobsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ public function throwRuntimeExceptionIfNoSourceFiles()
$server['GIT_COMMIT'] = 'abc123';

$object = $this->createJobsNeverSend();
$jsonFile = $this->collectJsonFile();
$jsonFile = $this->collectJsonFileWithoutSourceFiles();

$object
->setJsonFile($jsonFile)
Expand Down
1 change: 1 addition & 0 deletions tests/Bundle/CoverallsBundle/Console/ApplicationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public function shouldExecuteCoverallsJobsCommand()

// run
$_SERVER['TRAVIS'] = true;
$_SERVER['TRAVIS_BUILD_NUMBER'] = 'application_build';
$_SERVER['TRAVIS_JOB_ID'] = 'application_test';

$tester = new ApplicationTester($app);
Expand Down
1 change: 1 addition & 0 deletions tests/Bundle/CoverallsBundle/Entity/JsonFileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,7 @@ public function throwRuntimeExceptionOnFillingJobsWithoutSourceFiles()
{
$env = [];
$env['TRAVIS'] = true;
$env['TRAVIS_BUILD_NUMBER'] = '123';
$env['TRAVIS_JOB_ID'] = '1.1';

$object = $this->collectJsonFileWithoutSourceFiles();
Expand Down

0 comments on commit e48c9a1

Please sign in to comment.