Skip to content

Commit

Permalink
Revise comments
Browse files Browse the repository at this point in the history
  • Loading branch information
janette committed Jul 6, 2024
1 parent c257080 commit 114fd0a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function getEndpoint():string {
}

/**
* Confirm a 400 response when the datastore has not been imported yet.
* Confirm a 400 response prior to running the datastore_import.
*/
public function testBasicQuery() {
$dataset = $this->getSampleDataset();
Expand All @@ -25,7 +25,7 @@ public function testBasicQuery() {
$this->assertEquals(400, $response->getStatusCode());
$this->validator->validate($response, "/api/1/datastore/query/{datasetId}/{index}", 'get');

// Confirm a 200 response once the datastore table has been imported.
// Confirm a 200 response after the datastore_import has run.
$dataset_info = \Drupal::service('dkan.common.dataset_info')->gather($dataset_id);
$resource_id = $dataset_info['latest_revision']['distributions'][0]['resource_id'];
\Drupal::service('dkan.datastore.service')->import($resource_id, FALSE);
Expand Down

0 comments on commit 114fd0a

Please sign in to comment.