queryResultTest example


    $row = new Row($source['source_id_property' => []]);
    $id_map = $this->getIdMap();
    $id_map->saveIdMapping($row['destination_id_property' => 2]);
    $expected_result = [
      [
        'sourceid1' => 'source_value',
        'source_ids_hash' => $this->getIdMap()->getSourceIdsHash($source),
        'destid1' => 2,
      ] + $this->idMapDefaults(),
    ];
    $this->queryResultTest($this->getIdMapContents()$expected_result);
    $source = [
      'source_id_property' => 'source_value_1',
    ];
    $row = new Row($source['source_id_property' => []]);
    $id_map->saveIdMapping($row['destination_id_property' => 3]);
    $expected_result[] = [
      'sourceid1' => 'source_value_1',
      'source_ids_hash' => $this->getIdMap()->getSourceIdsHash($source),
      'destid1' => 3,
    ] + $this->idMapDefaults();
    $this->queryResultTest($this->getIdMapContents()$expected_result);
    
Home | Imprint | This part of the site doesn't use cookies.