From 2c221ea67d0512961beea8fbcb30b23865c16bb0 Mon Sep 17 00:00:00 2001 From: wei <> Date: Wed, 20 Dec 2006 03:15:04 +0000 Subject: Add quickstart docs for Active Record and SqlMap --- demos/time-tracker/tests/unit/UserDaoTestCase.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'demos/time-tracker/tests/unit/UserDaoTestCase.php') diff --git a/demos/time-tracker/tests/unit/UserDaoTestCase.php b/demos/time-tracker/tests/unit/UserDaoTestCase.php index 404dd9e2..d216dbe6 100644 --- a/demos/time-tracker/tests/unit/UserDaoTestCase.php +++ b/demos/time-tracker/tests/unit/UserDaoTestCase.php @@ -175,11 +175,11 @@ class UserDaoTestCase extends BaseTestCase try { $this->userDao->updateUserRoles($user); - $this->pass(); + $this->fail(); } - catch(TDataMapperException $e) + catch(TDbException $e) { - $this->fail(); + $this->pass(); } $check = $this->sqlmap->queryForObject('GetUserByName', 'user1'); -- cgit v1.2.3