fixed test
This commit is contained in:
parent
60109eb47c
commit
840289e360
|
@ -70,6 +70,7 @@ class ConfigDataExporterTest extends TestCase {
|
||||||
'profile1' => array('key' => 'value'),
|
'profile1' => array('key' => 'value'),
|
||||||
'profile2' => array('key' => 'value'),
|
'profile2' => array('key' => 'value'),
|
||||||
);
|
);
|
||||||
|
$webauthn = array();
|
||||||
$expectedJson = json_encode(array(
|
$expectedJson = json_encode(array(
|
||||||
'mainConfig' => $mainData,
|
'mainConfig' => $mainData,
|
||||||
'certificates' => 'certs',
|
'certificates' => 'certs',
|
||||||
|
@ -79,6 +80,7 @@ class ConfigDataExporterTest extends TestCase {
|
||||||
'pdfProfiles' => $pdfData,
|
'pdfProfiles' => $pdfData,
|
||||||
'pdfProfileTemplates' => $pdfTemplateData,
|
'pdfProfileTemplates' => $pdfTemplateData,
|
||||||
'selfServiceProfiles' => $selfServiceData,
|
'selfServiceProfiles' => $selfServiceData,
|
||||||
|
'webauthn' => $webauthn
|
||||||
));
|
));
|
||||||
|
|
||||||
$exporter = $this->getMockBuilder('\LAM\PERSISTENCE\ConfigDataExporter')
|
$exporter = $this->getMockBuilder('\LAM\PERSISTENCE\ConfigDataExporter')
|
||||||
|
@ -94,6 +96,7 @@ class ConfigDataExporterTest extends TestCase {
|
||||||
$exporter->method('_getPdfProfiles')->willReturn($pdfData);
|
$exporter->method('_getPdfProfiles')->willReturn($pdfData);
|
||||||
$exporter->method('_getPdfProfileTemplates')->willReturn($pdfTemplateData);
|
$exporter->method('_getPdfProfileTemplates')->willReturn($pdfTemplateData);
|
||||||
$exporter->method('_getSelfServiceProfiles')->willReturn($selfServiceData);
|
$exporter->method('_getSelfServiceProfiles')->willReturn($selfServiceData);
|
||||||
|
$exporter->method('_getWebauthn')->willReturn($webauthn);
|
||||||
|
|
||||||
$json = $exporter->exportAsJson();
|
$json = $exporter->exportAsJson();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue