Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3979409
D222.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D222.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D222: Organize the tests/data folder
Attached
Detach File
Event Timeline
Log In to Comment