Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3913995
D332.id791.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
938 B
Referenced Files
None
Subscribers
None
D332.id791.diff
View Options
diff --git a/tests/Phabricator/ProjectsMapTest.php b/tests/Phabricator/ProjectsMapTest.php
--- a/tests/Phabricator/ProjectsMapTest.php
+++ b/tests/Phabricator/ProjectsMapTest.php
@@ -161,30 +161,4 @@
);
}
- ///
- /// Tests API
- ///
-
- private function mockPhabricatorAPIWithReply ($reply) {
- $mock = $this->mockPhabricatorAPI();
- $mock->shouldReceive('get->call')->andReturn($reply);
- eval(\Psy\sh());
- }
-
- /**
- * @expectedException Exception
- */
- public function testFetchFromAPIWithoutReply () {
- $this->mockPhabricatorAPIWithReply(false);
- ProjectsMap::fetch("http://phabricator.acme.tld");
- }
-
- /**
- * @expectedException Exception
- */
- public function testFetchFromAPIInvalidReply () {
- $this->mockPhabricatorAPIWithReply(new stdClass);
- ProjectsMap::fetch("http://phabricator.acme.tld");
- }
-
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 12:44 (21 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2307991
Default Alt Text
D332.id791.diff (938 B)
Attached To
Mode
D332: Prune unfinished ProjectsMap tests
Attached
Detach File
Event Timeline
Log In to Comment