Support the ongoing development of Laravel.io →
posted 10 years ago
Testing

i am stuck in one of my unit test method, i am testing an post method in my controller, there is a line "serialize($_POST['subcategory'] );" which is getting all the value fieldname subcategory, how can i pass array in my test case http://laravel.io/bin/7w8ov

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

washeul washeul Joined 24 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.