Changeset View
Changeset View
Standalone View
Standalone View
src/__tests__/PhabricatorConduitTestCase.php
| <?php | <?php | ||||
| final class PhabricatorConduitTestCase extends PhabricatorTestCase { | final class PhabricatorConduitTestCase extends PhabricatorTestCase { | ||||
| public function testConduitMethods() { | public function testConduitMethods() { | ||||
| $methods = id(new PhutilSymbolLoader()) | $methods = id(new PhutilClassMapQuery()) | ||||
| ->setAncestorClass('ConduitAPIMethod') | ->setAncestorClass('ConduitAPIMethod') | ||||
| ->loadObjects(); | ->execute(); | ||||
| // We're just looking for a side effect of ConduitCall construction | // We're just looking for a side effect of ConduitCall construction | ||||
| // here: it will throw if any methods define reserved parameter names. | // here: it will throw if any methods define reserved parameter names. | ||||
| foreach ($methods as $method) { | foreach ($methods as $method) { | ||||
| new ConduitCall($method->getAPIMethodName(), array()); | new ConduitCall($method->getAPIMethodName(), array()); | ||||
| } | } | ||||
| $this->assertTrue(true); | $this->assertTrue(true); | ||||
| } | } | ||||
| } | } | ||||