So, I've got this rather strange thing happening in my Unit Test. I run 
this series of functions... 


$this->Product->create();
> $this->Product->save($testData);
> $id = $this->Product->id;
> $result = $this->Product->find('first', array('conditions' => 
> array('Product.id' => $id)));
> $this->Product->delete($result['Product']['id']);


...and I get this message...


The datasource configuration "default" was not found in database.php
> Test case: ProductTestCase(testDelete)
> Stack trace:
> /home/razorit/dev.zuha.com/lib/Cake/Model/ConnectionManager.php : 94
> /home/razorit/dev.zuha.com/lib/Cake/Model/Model.php : 3374
> /home/razorit/dev.zuha.com/lib/Cake/Model/Model.php : 1083
> /home/razorit/dev.zuha.com/lib/Cake/Model/Model.php : 3400
> /home/razorit/dev.zuha.com/lib/Cake/Model/Model.php : 3284
> /home/razorit/dev.zuha.com/lib/Cake/Model/Model.php : 2443
> /home/razorit/dev.zuha.com/lib/Cake/Model/Model.php : 2386
> /home/razorit/dev.zuha.com/app/Plugin/Products/Test/Case/Model/ProductTest.php
>  
> : 95



...strangely, it doesn't give me any problem like that, for the create(), 
save(), find(). It only seems to throw this error when I use delete(). I've 
looked all over to see if there are any callbacks which might cause it, but 
so far nothing. Any ideas would help, I'm running out of places to look. 


-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.


Reply via email to