function realtyCommercialsDelete() { $adminToken = file_get_contents(codecept_data_dir('admin_token.json')); $realtyCommercialsID = file_get_contents(codecept_data_dir('realtyCommercialId.json')); $this->restModule->haveHttpHeader('token', $adminToken); $this->restModule->haveHttpHeader('Content-Type', 'application/json'); $this->restModule->sendDELETE('/realties/' . $realtyCommercialsID . '/delete'); $realtyCommercialDelete = $this->restModule->grabResponse(); $this->debugSection('realtyCommercialDelete', $realtyCommercialDelete); $this->restModule->seeResponseCodeIS(200); $this->restModule->seeResponseIsJson(); $this->restModule->seeHttpHeader('Content-Type', 'application/json'); }