. **/ require_once dirname(__FILE__).'/../include/CAPITest.php'; class testAPIInfo extends CAPITest { public function testAPIInfo_VersionWithAuth() { $error = [ 'code' => -32602, 'message' => 'Invalid params.', 'data' => 'The "apiinfo.version" method must be called without authorization header.' ]; $this->call('apiinfo.version', [], $error); } public function testAPIInfo_VersionWithoutAuth() { $this->disableAuthorization(); $result = $this->call('apiinfo.version', []); $this->assertSame('7.4.0', $result['result']); } }