增加回调地址设置
This commit is contained in:
@@ -2,11 +2,13 @@
|
||||
|
||||
namespace cn\com\maiyoule\mqttclient\test;
|
||||
|
||||
use cn\com\maiyoule\mqttclient\biz\AppUpdateCallbackRequest;
|
||||
use cn\com\maiyoule\mqttclient\biz\AppUserCreateRequest;
|
||||
use cn\com\maiyoule\mqttclient\biz\AppUserDeleteRequest;
|
||||
use cn\com\maiyoule\mqttclient\biz\AppUserUpdateRequest;
|
||||
use cn\com\maiyoule\mqttclient\exception\ApiException;
|
||||
use cn\com\maiyoule\mqttclient\AuthorServerClient;
|
||||
use GuzzleHttp\Exception\GuzzleException;
|
||||
use PHPUnit\Framework\Assert;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
@@ -80,4 +82,16 @@ class AppManagerTest extends TestCase
|
||||
}
|
||||
}
|
||||
|
||||
public function testUpdateAppUrl()
|
||||
{
|
||||
$request = new AppUpdateCallbackRequest();
|
||||
$request->setUrl('http://202.200.18.46:8000/api.php');
|
||||
try {
|
||||
$biz = $this->manager->exec($request);
|
||||
$this->assertTrue($biz->isSuccess(), $biz->getMessage());
|
||||
} catch (GuzzleException|ApiException $e) {
|
||||
$this->fail($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user