Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3987359
D247.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D247.diff
View Options
diff --git a/tests/Http/PayloadFullTest.php b/tests/Http/PayloadFullTest.php
--- a/tests/Http/PayloadFullTest.php
+++ b/tests/Http/PayloadFullTest.php
@@ -74,6 +74,29 @@
}
/**
+ * Tests a Phabricator gate payload.
+ */
+ public function testPhabricatorPayload () {
+ $this->post(
+ '/gate/Phabricator/Acme',
+ [
+ 'storyID' => 3849,
+ 'storyType' => 'PhabricatorApplicationTransactionFeedStory',
+ 'storyData[objectPHID]' => 'PHID-TASK-l34fw5wievp6n6rnvpuk',
+ 'storyData[transactionPHIDs][PHID-XACT-TASK-by2g3dtlfq3l2wc]' => 'PHID-XACT-TASK-by2g3dtlfq3l2wc',
+ 'storyAuthorPHID' => 'PHID-USER-fnetlprx7zdotfm2hdrz',
+ 'storyText' => 'quux moved T123: Lorem ipsum dolor to Backlog on the Foo workboard.',
+ 'epoch' => 1450654419,
+ ]
+ )->seeJson([
+ 'gate' => 'Phabricator',
+ 'door' => 'Acme',
+ 'action' => 'AMQPAction'
+ ]);
+ $this->assertResponseOk();
+ }
+
+ /**
* Same than testPost, but without actions report.
*/
public function testPostWithoutActionsReport () {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 9, 09:41 (3 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2337684
Default Alt Text
D247.diff (1 KB)
Attached To
Mode
D247: Integration test: Phabricator payload
Attached
Detach File
Event Timeline
Log In to Comment