Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
How can I test this?
  • I found a few problems in DBUtil::modify_fields. I have fixed them and would like to submit a pull request with tests. The problem is I have no idea how to write the test. All the functions in DBUtil end with something like:
    \DB::query($sql, \DB::UPDATE)->execute();
    
    So how can I examine the sql in a test? As is now probably obvious I am not awesome at php and may have missed something obvious.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!