From 70e305a918fcf193009831d4e89aa8c386df3dc4 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Tue, 29 Mar 2016 09:24:08 +0200 Subject: Ported / fixed most old tests --- .../Data/ActiveRecord/BaseActiveRecordTest.php | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) (limited to 'tests/unit/Data/ActiveRecord/BaseActiveRecordTest.php') diff --git a/tests/unit/Data/ActiveRecord/BaseActiveRecordTest.php b/tests/unit/Data/ActiveRecord/BaseActiveRecordTest.php index 258fe70c..e39bdc87 100644 --- a/tests/unit/Data/ActiveRecord/BaseActiveRecordTest.php +++ b/tests/unit/Data/ActiveRecord/BaseActiveRecordTest.php @@ -1,34 +1,20 @@ assertIdentical($obj1,$obj2); - } - - function test_finder_throw_exception_when_save() - { - $obj = TActiveRecord::finder('BaseRecordTest'); - try - { - $obj->save(); - $this->fail(); - } - catch(TActiveRecordException $e) - { - $this->pass(); - } + $this->assertSame($obj1,$obj2); } } -- cgit v1.2.3