Model test with Postgre, which assertion do I need? |
Hi,
New to CodeIgniter and TDD, I'm trying an "easy" test. I've got a model with a create() method which is just a "insert into" statement. I know by reading the doc, that using the query() method with Postgre doesn't return a boolean. I know the row is correctly inserted but the fact that an object is returned is blowing my test. So which assertion would you use for that? Here is my test: PHP Code: public function testUserCreation() And the result is: Quote:There were 1 failure: Thanks for any advice.
|
Welcome Guest, Not a member yet? Register Sign In |