summaryrefslogtreecommitdiff
path: root/tests/simple_unit/SqlMap
diff options
context:
space:
mode:
Diffstat (limited to 'tests/simple_unit/SqlMap')
-rw-r--r--tests/simple_unit/SqlMap/ActiveRecordSqlMapTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/simple_unit/SqlMap/ActiveRecordSqlMapTest.php b/tests/simple_unit/SqlMap/ActiveRecordSqlMapTest.php
index 63d62534..81ce93bb 100644
--- a/tests/simple_unit/SqlMap/ActiveRecordSqlMapTest.php
+++ b/tests/simple_unit/SqlMap/ActiveRecordSqlMapTest.php
@@ -65,7 +65,9 @@ class ActiveRecordSqlMapTest extends BaseCase
$this->assertTrue($record->save());
$check1 = $this->sqlmap->queryForObject('GetActiveRecordAccounts');
- $check2 = ActiveAccount::finder()->findByAccount_FirstName($record->Account_FirstName);
+ $finder = ActiveAccount::finder();
+ $check2 = $finder->findByAccount_FirstName($record->Account_FirstName);
+
$this->assertSameAccount($record,$check1);
$this->assertSameAccount($record,$check2);