diff options
Diffstat (limited to 'tests/PHPUnit/Integration/JsProxyTest.php')
-rw-r--r-- | tests/PHPUnit/Integration/JsProxyTest.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/PHPUnit/Integration/JsProxyTest.php b/tests/PHPUnit/Integration/JsProxyTest.php index 0fbab1890f..17e2430401 100644 --- a/tests/PHPUnit/Integration/JsProxyTest.php +++ b/tests/PHPUnit/Integration/JsProxyTest.php @@ -14,8 +14,14 @@ use Piwik\Tests\Framework\TestCase\IntegrationTestCase; /** * @group Core */ -class JsProxyTest extends \PHPUnit_Framework_TestCase +class JsProxyTest extends IntegrationTestCase { + public function setUp() + { + parent::setUp(); + Fixture::createWebsite('2014-01-01 02:03:04'); + } + public function testPiwikJs() { $curlHandle = curl_init(); @@ -60,7 +66,7 @@ class JsProxyTest extends \PHPUnit_Framework_TestCase $responseInfo = curl_getinfo($curlHandle); curl_close($curlHandle); - $this->assertEquals(200, $responseInfo["http_code"], var_export($responseInfo, true)); + $this->assertEquals(200, $responseInfo["http_code"], var_export($responseInfo, true) . $fullResponse); $expected = "R0lGODlhAQABAIAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="; $processed = base64_encode($fullResponse); if ($expected != $processed) { |