Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
vcestone committed Aug 9, 2023
1 parent 4cc35ce commit d4086cd
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ public static function setUpBeforeClass(): void
parent::setUpBeforeClass();

\Yii::import('application.helpers.remotecontrol.remotecontrol_handle', true);
\Yii::import('application.helpers.viewHelper', true);
\Yii::import('application.libraries.BigData', true);

// Import survey
$filename = self::$surveysFolder . '/survey_export_responses_by_token_955579.lsa';
Expand Down Expand Up @@ -68,9 +66,6 @@ public function testExportResponsesByToken2()
public function testExportResponsesByTokensArray()
{
\Yii::import('application.helpers.remotecontrol.remotecontrol_handle', true);
\Yii::import('application.helpers.viewHelper', true);
\Yii::import('application.libraries.BigData', true);

// Import survey
$filename = self::$surveysFolder . '/survey_export_responses_by_token_955579.lsa';
self::importSurvey($filename);
Expand All @@ -79,13 +74,6 @@ public function testExportResponsesByTokensArray()

$result = $this->handler->export_responses_by_token($sessionKey, self::$surveyId, 'json', array('token3', 'token4'));
$this->assertNotNull($result);
fwrite(STDERR, print_r(self::$surveyId . PHP_EOL, TRUE));
$aTokensQuoted = Array();
foreach (array('token3', 'token4') as $token) {
array_push($aTokensQuoted, App()->db->quoteValue("$token"));
}
$tokenFilter = " IN (" . implode(",", $aTokensQuoted) . ")";
fwrite(STDERR, print_r($tokenFilter . PHP_EOL, TRUE));

$responses = json_decode(file_get_contents($result->fileName), true);
fwrite(STDERR, print_r(json_encode($responses) . PHP_EOL, TRUE));
Expand Down

0 comments on commit d4086cd

Please sign in to comment.