Page MenuHomeDevCentral

D332.id791.diff
No OneTemporary

D332.id791.diff

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

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)

Event Timeline