From b42f4b4ea0e477188f627c4c89183d77450fb230 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Wed, 25 Sep 2013 12:45:07 +0200 Subject: [PATCH] fixed broken test --- tests/unit/framework/db/ActiveRecordTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/framework/db/ActiveRecordTest.php b/tests/unit/framework/db/ActiveRecordTest.php index 130b48c..85e5987 100644 --- a/tests/unit/framework/db/ActiveRecordTest.php +++ b/tests/unit/framework/db/ActiveRecordTest.php @@ -44,7 +44,7 @@ class ActiveRecordTest extends DatabaseTestCase $this->assertNull($customer); // query scalar - $customerName = Customer::find()->where(array('id' => 2))->scalar('name'); + $customerName = Customer::find()->where(array('id' => 2))->select('name')->scalar(); $this->assertEquals('user2', $customerName); // find by column values