fixed test

This commit is contained in:
Roland Gruber 2020-07-18 13:22:00 +02:00
parent 60109eb47c
commit 840289e360
1 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,7 @@ class ConfigDataExporterTest extends TestCase {
'profile1' => array('key' => 'value'),
'profile2' => array('key' => 'value'),
);
$webauthn = array();
$expectedJson = json_encode(array(
'mainConfig' => $mainData,
'certificates' => 'certs',
@ -79,6 +80,7 @@ class ConfigDataExporterTest extends TestCase {
'pdfProfiles' => $pdfData,
'pdfProfileTemplates' => $pdfTemplateData,
'selfServiceProfiles' => $selfServiceData,
'webauthn' => $webauthn
));
$exporter = $this->getMockBuilder('\LAM\PERSISTENCE\ConfigDataExporter')
@ -94,6 +96,7 @@ class ConfigDataExporterTest extends TestCase {
$exporter->method('_getPdfProfiles')->willReturn($pdfData);
$exporter->method('_getPdfProfileTemplates')->willReturn($pdfTemplateData);
$exporter->method('_getSelfServiceProfiles')->willReturn($selfServiceData);
$exporter->method('_getWebauthn')->willReturn($webauthn);
$json = $exporter->exportAsJson();