Page MenuHomeDevCentral

D332.diff
No OneTemporary

D332.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
Sun, Nov 24, 09:05 (11 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259898
Default Alt Text
D332.diff (938 B)

Event Timeline