Remove product literal strings in "pht()", part 6
[phabricator.git] / src / applications / conduit / call / __tests__ / ConduitCallTestCase.php
blobb62ddcef1add5ca3c76e34cc50799837e7ad07fb
1 <?php
3 final class ConduitCallTestCase extends PhabricatorTestCase {
5 public function testConduitPing() {
6 $call = new ConduitCall('conduit.ping', array());
7 $result = $call->execute();
9 $this->assertFalse(empty($result));
12 public function testConduitAuth() {
13 $call = new ConduitCall('user.whoami', array(), true);
15 $caught = null;
16 try {
17 $result = $call->execute();
18 } catch (ConduitException $ex) {
19 $caught = $ex;
22 $this->assertTrue(
23 ($caught instanceof ConduitException),
24 pht(
25 '%s should require authentication.',
26 'user.whoami'));