Page MenuHomeDevCentral

D222.diff
No OneTemporary

D222.diff

diff --git a/tests/Analyzers/GitHubPayloadAnalyzerTest.php b/tests/Analyzers/GitHubPayloadAnalyzerTest.php
--- a/tests/Analyzers/GitHubPayloadAnalyzerTest.php
+++ b/tests/Analyzers/GitHubPayloadAnalyzerTest.php
@@ -21,7 +21,7 @@
* Prepares the test
*/
public function setUp () {
- $filename = __DIR__ . '/../data/GitHubPayloadAnalyzer-Nasqueron.json';
+ $filename = __DIR__ . '/../data/GitHubPayloadAnalyzer/Nasqueron.json';
$mapper = new \JsonMapper();
$this->configuration = $mapper->map(
json_decode(file_get_contents($filename)),
diff --git a/tests/Http/Controllers/GitHubGateControllerTest.php b/tests/Http/Controllers/GitHubGateControllerTest.php
--- a/tests/Http/Controllers/GitHubGateControllerTest.php
+++ b/tests/Http/Controllers/GitHubGateControllerTest.php
@@ -25,7 +25,7 @@
* Tests a GitHub gate payload.
*/
public function testPost () {
- $payload = file_get_contents(__DIR__ . '/../../data/GitHubPingPayload.json');
+ $payload = file_get_contents(__DIR__ . '/../../data/payloads/GitHubPingPayload.json');
$this->sendPayload(
'/gate/GitHub/Quux', // A gate not existing in data/credentials.json
$payload,
diff --git a/tests/Http/PayloadFullTest.php b/tests/Http/PayloadFullTest.php
--- a/tests/Http/PayloadFullTest.php
+++ b/tests/Http/PayloadFullTest.php
@@ -28,7 +28,7 @@
}
protected function sendTestPayload ($signature) {
- $payload = file_get_contents(__DIR__ . '/../data/GitHubPingPayload.json');
+ $payload = file_get_contents(__DIR__ . '/../data/payloads/GitHubPingPayload.json');
$this->sendPayload(
'/gate/GitHub/Acme', // A gate existing in data/credentials.json
$payload,
@@ -88,7 +88,7 @@
public function testBrokerIssue () {
$this->mockNotOperationalBroker();
- $payload = file_get_contents(__DIR__ . '/../data/GitHubPingPayload.json');
+ $payload = file_get_contents(__DIR__ . '/../data/payloads/GitHubPingPayload.json');
$this->sendPayload(
'/gate/GitHub/Acme', // A gate existing in data/credentials.json
$payload,
diff --git a/tests/data/GitHubPayloadAnalyzer-Nasqueron.json b/tests/data/GitHubPayloadAnalyzer/Nasqueron.json
rename from tests/data/GitHubPayloadAnalyzer-Nasqueron.json
rename to tests/data/GitHubPayloadAnalyzer/Nasqueron.json
diff --git a/tests/data/GitHubPingPayload.json b/tests/data/payloads/GitHubPingPayload.json
rename from tests/data/GitHubPingPayload.json
rename to tests/data/payloads/GitHubPingPayload.json

File Metadata

Mime Type
text/plain
Expires
Wed, Jan 8, 14:53 (57 m, 19 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2337199
Default Alt Text
D222.diff (2 KB)

Event Timeline