[Flow] File Upload Test
Carsten Bleicker
carsten at bleicker.de
Thu Mar 13 13:11:41 CET 2014
removing of testing resources supported by tearDown now.
Am 13.03.2014 um 13:02 schrieb Carsten Bleicker <carsten at bleicker.de>:
> seems also to work:
> https://gist.github.com/pumatertion/9526873
>
> only missing feature currently is to destroy the testing resource folder on teardown.
>
>
>
> Am 13.03.2014 um 12:27 schrieb Rémy DANIEL <dogawaf at no-log.org>:
>
>> Hi
>>
>> You are write, a simulated file upload did not work...
>> This SO answer seems to be the way to test an upload, by wrapping
>> is_uploaded_file
>> and move_uploaded_file into testable methods.
>> http://stackoverflow.com/a/3410684/1053453
>>
>> Regards
>>
>> --
>> Rémy
>>
>>
>> 2014-03-13 10:10 GMT+01:00 Carsten Bleicker <carsten at bleicker.de>:
>>
>>> does not work because is_uploaded_file returns false because its simulated
>>> and not realy a http upload :(
>>>
>>>
>>> Am 12.03.2014 um 21:33 schrieb Rémy DANIEL <dogawaf at no-log.org>:
>>>
>>>> Not tested : can you populate the $_FILES array with some stub datas ?
>>>>
>>>>
>>>> --
>>>> Rémy
>>>>
>>>>
>>>> 2014-03-12 19:06 GMT+01:00 Aimo Kuenkel <mail at aimo.cc>:
>>>>
>>>>> +1 for this question.
>>>>> Have the same problem here and no idea how to test it...
>>>>> A real life example would be awesome!
>>>>>
>>>>> -----Ursprüngliche Nachricht-----
>>>>> Von: flow-bounces at lists.typo3.org [mailto:flow-bounces at lists.typo3.org]
>>>>> Im Auftrag von Carsten Bleicker
>>>>> Gesendet: Mittwoch, 12. März 2014 18:51
>>>>> An: TYPO3 Flow mailing list
>>>>> Betreff: [Flow] File Upload Test
>>>>>
>>>>> Any Idea how to proof that an uploadAction works?
>>>>> Sending request per curl? But to what? Host isnt realy available.
>>>>> Anybody did something like this already?
>>>>> Or is this totaly nuts?
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Flow mailing list
>>>>> Flow at lists.typo3.org
>>>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
>>>>> _______________________________________________
>>>>> Flow mailing list
>>>>> Flow at lists.typo3.org
>>>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
>>>>>
>>>> _______________________________________________
>>>> Flow mailing list
>>>> Flow at lists.typo3.org
>>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
>>>
>>> _______________________________________________
>>> Flow mailing list
>>> Flow at lists.typo3.org
>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
>>>
>> _______________________________________________
>> Flow mailing list
>> Flow at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
>
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
More information about the Flow
mailing list