Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F57999647
D332.id791.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
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
Thu, Nov 26, 05:10 (6 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4265880
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