setDbConnection($conn); } function test_find_by_sql() { $deps = DepartmentRecord::finder()->findBySql('SELECT * FROM departments'); $this->assertTrue(count($deps) > 0); } } ?>