Hi guys, I am trying to write a simple unit test for my autocomplete widget controller function. The autocomplete controller code follows the pattern explained in this tutorial:
Using CAutoComplete to display one value and submit another
so basically I need to simulate an ajax request from in my testAutoCompleteLookup method, so that the test can satisfy this condition
if(Yii::app()->request->isAjaxRequest && isset($_GET['q']) ...
How can I do this? Is there any CTestCase function I can use?