Exemplo n.º 1
0
 public function testPostBulkRequest()
 {
     $spaceId = KintoneTestHelper::createTestSpace();
     $space = $this->api->space()->get($spaceId);
     $appId = KintoneTestHelper::createTestApp($spaceId, $space['defaultThread']);
     $recordId = KintoneTestHelper::postTestRecord($appId);
     $requests = [["method" => "DELETE", "api" => KintoneApi::generateUrl('records.json'), "payload" => ["app" => $appId, "ids" => [$recordId]]]];
     $result = $this->api->postBulkRequest($requests);
     self::assertArrayNotHasKey('message', $result);
 }