From f27359c3779af5e19a30b2a3620b8c030c9070bf Mon Sep 17 00:00:00 2001 From: Matthieu Napoli <matthieu@mnapoli.fr> Date: Fri, 10 Oct 2014 20:50:31 +1300 Subject: [PATCH] #5940 Moved the fixtures of HttpTest which were left behind in unit tests --- .../PHPUnit/{Unit => Integration}/Http/fixture.zip | Bin tests/PHPUnit/Integration/HttpTest.php | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename tests/PHPUnit/{Unit => Integration}/Http/fixture.zip (100%) diff --git a/tests/PHPUnit/Unit/Http/fixture.zip b/tests/PHPUnit/Integration/Http/fixture.zip similarity index 100% rename from tests/PHPUnit/Unit/Http/fixture.zip rename to tests/PHPUnit/Integration/Http/fixture.zip diff --git a/tests/PHPUnit/Integration/HttpTest.php b/tests/PHPUnit/Integration/HttpTest.php index 9d197a61a5..07d7736bfd 100644 --- a/tests/PHPUnit/Integration/HttpTest.php +++ b/tests/PHPUnit/Integration/HttpTest.php @@ -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, -- GitLab