Esempio n. 1
0
 public function testGetAppInfoOnBadAppID()
 {
     $result = $this->api->getAppInfo(['appid' => 'not_provisioning_api']);
     $this->assertInstanceOf('OC_OCS_Result', $result);
     $this->assertFalse($result->succeeded());
     $this->assertEquals(API::RESPOND_NOT_FOUND, $result->getStatusCode());
 }
Esempio n. 2
0
 public function testGetAppInfoOnBadAppID()
 {
     $result = \OCA\provisioning_API\Apps::getAppInfo(array('appid' => 'not_provisioning_api'));
     $this->assertInstanceOf('OC_OCS_Result', $result);
     $this->assertFalse($result->succeeded());
     $this->assertEquals(\OCP\API::RESPOND_NOT_FOUND, $result->getStatusCode());
 }