Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mickaël Andrieu
committed
Oct 22, 2018
1 parent
7278baf
commit 8773db9
Showing
4 changed files
with
47 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/5.5/phpunit.xsd" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/5.7/phpunit.xsd" | ||
bootstrap="tests/autoload.php"> | ||
|
||
<testsuites> | ||
<testsuite name="Unit tests"> | ||
<directory>tests/unit/</directory> | ||
</testsuite> | ||
<testsuite name="Functional tests"> | ||
<directory>tests/functional/</directory> | ||
</testsuite> | ||
</testsuites> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
use PHPUnit\Framework\TestCase; | ||
|
||
class CallToGamificationServerTest extends TestCase | ||
{ | ||
public function testContentIsGzipped() | ||
{ | ||
$workingCallUrl = "https://gamification.prestashop.com/json/data_EN_IDR_ID.json"; | ||
|
||
$response = GamificationTools::retrieveJsonApiFile($workingCallUrl, true); | ||
self::assertContains('Content-Encoding: gzip', $response); | ||
} | ||
} |