Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3768606
D332.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.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
Sun, Nov 24, 09:05 (14 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259898
Default Alt Text
D332.diff (938 B)
Attached To
Mode
D332: Prune unfinished ProjectsMap tests
Attached
Detach File
Event Timeline
Log In to Comment