We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a88b8dd commit 2f527ccCopy full SHA for 2f527cc
cake/tests/cases/libs/model/datasources/dbo_source.test.php
@@ -4426,4 +4426,19 @@ function testVirtualFieldsInGroup() {
4426
$expected = " GROUP BY (YEAR(`Article`.`created`))";
4427
$this->assertEqual($expected, $result);
4428
}
4429
+
4430
+/**
4431
+ * test the permutations of fullTableName()
4432
+ *
4433
+ * @return void
4434
+ */
4435
+ function testFullTablePermutations() {
4436
+ $Article =& ClassRegistry::init('Article');
4437
+ $result = $this->testDb->fullTableName($Article, false);
4438
+ $this->assertEqual($result, 'articles');
4439
4440
+ $Article->tablePrefix = 'tbl_';
4441
4442
+ $this->assertEqual($result, 'tbl_articles');
4443
+ }
4444
0 commit comments