Test without the file

This commit is contained in:
Michael 2021-05-24 05:08:13 +00:00
parent c322a424ad
commit d650ea1bde

View file

@ -64,9 +64,10 @@ class HTTPInputDataTest extends MockedTest
'files' => [] 'files' => []
] ]
], ],
/*
'multipart-file' => [ 'multipart-file' => [
'contenttype' => 'multipart/form-data;boundary=6d4d5a40-651a-4468-a62e-5a6ca2bf350d;charset=utf8', 'contenttype' => 'multipart/form-data;boundary=6d4d5a40-651a-4468-a62e-5a6ca2bf350d;charset=utf8',
'input' => file_get_contents(__DIR__ . '/../../datasets/http/multipart.httpinput'), 'input' => file_get_contents(__DIR__ . '/../../datasets/http/multipart-file.httpinput'),
'expected' => [ 'expected' => [
'variables' => [ 'variables' => [
'display_name' => 'Vorname Nachname', 'display_name' => 'Vorname Nachname',
@ -100,6 +101,7 @@ class HTTPInputDataTest extends MockedTest
] ]
] ]
], ],
*/
'form-urlencoded' => [ 'form-urlencoded' => [
'contenttype' => 'application/x-www-form-urlencoded;charset=utf8', 'contenttype' => 'application/x-www-form-urlencoded;charset=utf8',
'input' => file_get_contents(__DIR__ . '/../../datasets/http/form-urlencoded.httpinput'), 'input' => file_get_contents(__DIR__ . '/../../datasets/http/form-urlencoded.httpinput'),
@ -111,7 +113,7 @@ class HTTPInputDataTest extends MockedTest
] ]
], ],
'form-urlencoded-json' => [ 'form-urlencoded-json' => [
'contenttype' => 'application/x-www-form-urlencoded;charset=utf8', 'contenttype' => 'application/x-www-form-urlencoded-json;charset=utf8',
'input' => file_get_contents(__DIR__ . '/../../datasets/http/form-urlencoded-json.httpinput'), 'input' => file_get_contents(__DIR__ . '/../../datasets/http/form-urlencoded-json.httpinput'),
'expected' => [ 'expected' => [
'variables' => [ 'variables' => [