Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3980465
D249.id587.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
D249.id587.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
@@ -77,23 +77,25 @@
* 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([
+ $data = [
+ '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,
+ ];
+
+ $this->post('/gate/Phabricator/Acme', $data)->seeJson([
'gate' => 'Phabricator',
'door' => 'Acme',
'action' => 'AMQPAction'
]);
$this->assertResponseOk();
+
+ $this->post('/gate/Phabricator/NotExistingDoor', $data);
+ $this->assertResponseStatus(404);
}
/**
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 8, 16:53 (1 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2337681
Default Alt Text
D249.id587.diff (1 KB)
Attached To
Mode
D249: Integration test: 404 for not existing Phabricator door
Attached
Detach File
Event Timeline
Log In to Comment