Skip to content

fix Lumen file upload via REST module#5082

Merged
DavertMik merged 2 commits intoCodeception:2.4from
retnek:update-lumen-connector
Jul 31, 2018
Merged

fix Lumen file upload via REST module#5082
DavertMik merged 2 commits intoCodeception:2.4from
retnek:update-lumen-connector

Conversation

@retnek
Copy link
Copy Markdown
Contributor

@retnek retnek commented Jul 18, 2018

for #5081

(there's no Lumen tests)

Copy link
Copy Markdown
Member

@Naktibalda Naktibalda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add missing use statement and test it locally with your project.

if (is_array($value)) {
$filtered[$key] = $this->convertToTestFiles($value);
} else {
$filtered[$key] = UploadedFile::createFromBase($value, true);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like copy-paste from Laravel5 module, but you missed use Illuminate\Http\UploadedFile; line at the top.
https://github.com/Codeception/Codeception/blob/2.4.4/src/Codeception/Lib/Connector/Laravel5.php#L10

@retnek
Copy link
Copy Markdown
Contributor Author

retnek commented Jul 31, 2018

tested with my project and it's working

@DavertMik
Copy link
Copy Markdown
Member

Thanks!

@DavertMik DavertMik merged commit c86a691 into Codeception:2.4 Jul 31, 2018
@retnek retnek deleted the update-lumen-connector branch April 24, 2019 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants