Skip to content
Extraits de code Groupes Projets
Valider f27359c3 rédigé par Matthieu Napoli's avatar Matthieu Napoli
Parcourir les fichiers

#5940 Moved the fixtures of HttpTest which were left behind in unit tests

parent ee52d5da
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -54,7 +54,7 @@ class Piwik_Test_HttpTest extends PHPUnit_Framework_TestCase
public function testFetchLatestZip()
{
$destinationPath = PIWIK_USER_PATH . '/tmp/latest/latest.zip';
Http::fetchRemoteFile(Fixture::getRootUrl() . 'tests/PHPUnit/Unit/Http/fixture.zip', $destinationPath, 3, 30);
Http::fetchRemoteFile(Fixture::getRootUrl() . 'tests/PHPUnit/Integration/Http/fixture.zip', $destinationPath, 3, 30);
$this->assertFileExists($destinationPath);
$this->assertGreaterThan(0, filesize($destinationPath));
}
......@@ -100,7 +100,7 @@ class Piwik_Test_HttpTest extends PHPUnit_Framework_TestCase
$result = Http::sendHttpRequestBy(
$method,
Fixture::getRootUrl() . 'tests/PHPUnit/Unit/Http/fixture.zip',
Fixture::getRootUrl() . 'tests/PHPUnit/Integration/Http/fixture.zip',
30,
$userAgent = null,
$destinationPath = null,
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter