summaryrefslogtreecommitdiff
path: root/tests/simple_unit/ActiveRecord/ViewRecordTestCase.php
diff options
context:
space:
mode:
authorwei <>2007-04-14 05:02:29 +0000
committerwei <>2007-04-14 05:02:29 +0000
commit0f0d3c62e608287cdf77f1a3239371b521ecb40b (patch)
treebd91a9499a946e1667a0e17a9c5a97a9d695c7ce /tests/simple_unit/ActiveRecord/ViewRecordTestCase.php
parentb05442bbe751b87998d8500ad8e6b28d652a35db (diff)
Refactor ActiveRecordGateway to use TDataGatewayCommand
Diffstat (limited to 'tests/simple_unit/ActiveRecord/ViewRecordTestCase.php')
-rw-r--r--tests/simple_unit/ActiveRecord/ViewRecordTestCase.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/simple_unit/ActiveRecord/ViewRecordTestCase.php b/tests/simple_unit/ActiveRecord/ViewRecordTestCase.php
index 29fdee49..db23f01a 100644
--- a/tests/simple_unit/ActiveRecord/ViewRecordTestCase.php
+++ b/tests/simple_unit/ActiveRecord/ViewRecordTestCase.php
@@ -54,7 +54,7 @@ class ViewRecordTestCase extends UnitTestCase
$user = SimpleUser::finder()->findByPk('admin');
$this->fail();
}
- catch(TActiveRecordException $e)
+ catch(TDbException $e)
{
$this->pass();
}
@@ -67,7 +67,7 @@ class ViewRecordTestCase extends UnitTestCase
SimpleUser::finder()->deleteByPk('admin');
$this->fail();
}
- catch(TActiveRecordException $e)
+ catch(TDbException $e)
{
$this->pass();
}