function testWhereEscapeFieldSQLExpression() { $user = new TestUser(); $data = $user->findFirstBy('name', new SQLExpression('CONCAT(name)')); // test sql function testing $this->assertEqual(SimpleDbAdapterWrapper::$adapter->lastSQL(), 'SELECT * FROM users WHERE name = CONCAT(name) LIMIT 1'); }