Page MenuHomec4science

ConduitCallTestCase.php
No OneTemporary

File Metadata

Created
Mon, Nov 25, 13:58

ConduitCallTestCase.php

<?php
final class ConduitCallTestCase extends PhabricatorTestCase {
public function testConduitPing() {
$call = new ConduitCall('conduit.ping', array());
$result = $call->execute();
$this->assertFalse(empty($result));
}
public function testConduitAuth() {
$call = new ConduitCall('user.whoami', array(), true);
$caught = null;
try {
$result = $call->execute();
} catch (ConduitException $ex) {
$caught = $ex;
}
$this->assertTrue(
($caught instanceof ConduitException),
pht(
'%s should require authentication.',
'user.whoami'));
}
}

Event Timeline