I'm using SimpleTest to test my custom CCK content type. Here is an example:
$this->drupalPost('node/1/edit', array('field_comp_addmargin[0][value]' => 0),'Save');
It actually saves the value, but for some reason it doesn't go through standard drupal handlers.. For example after I submit node_edit form it should fire nodeapi update event. In my case it not happens for some reason and because of that my custom piece of code which should be executed on nodeapi update never gets executed..
I tested it normally through my browser and it works as expected, but getting problems when using drupalPost to submit the form..
Did anyone encountered similar problems? I'm sure I can just load that node with node_load and then use node_save and then nodeapi hook will be called, but it's just workaround.
My simpletest version is "6.x-2.10"
Thanks a lot