Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Commit

Permalink
Merge pull request #110 from ibuildingsnl/installer-fail
Browse files Browse the repository at this point in the history
Test that installer fails when release cannot be downloaded
  • Loading branch information
rjkip authored Feb 24, 2017
2 parents b8112be + 9f7cb7e commit 968de08
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tests/integration/Installer/InstallerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,13 @@ public function download_correct_files()

$this->assertTrue($success);
$this->assertRegExp(
'~^QA Tools \(version ' . preg_quote(self::VERSION, '~') . '\) successfully installed~sm',
'~^QA Tools \(version '.preg_quote(self::VERSION, '~').'\) successfully installed~sm',
$output
);

$this->assertFileExists($this->tempDirectory . '/qa-tools');
$this->assertEquals(self::PHAR_ASSET_CONTENTS, file_get_contents($this->tempDirectory . '/qa-tools'));

$this->assertFileExists($this->tempDirectory . '/qa-tools.pubkey');
$this->assertEquals(self::PUBKEY_ASSET_CONTENTS, file_get_contents($this->tempDirectory . '/qa-tools.pubkey'));
$this->assertFileExists($this->tempDirectory.'/qa-tools');
$this->assertEquals(self::PHAR_ASSET_CONTENTS, file_get_contents($this->tempDirectory.'/qa-tools'));
$this->assertFileExists($this->tempDirectory.'/qa-tools.pubkey');
$this->assertEquals(self::PUBKEY_ASSET_CONTENTS, file_get_contents($this->tempDirectory.'/qa-tools.pubkey'));
}

/** @test */
Expand Down

0 comments on commit 968de08

Please sign in to comment.