diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-02-07 13:54:37 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-02-07 13:54:37 -0800 |
commit | 7df4d795e8c5d4b100637f0fea0ad8ef7f6aeabb (patch) | |
tree | 5fdb9d2a11f712cbff82a70e4aed19c77c5370ec /modules/gallery/tests/Database_Test.php | |
parent | 6340d8caf2261199e029841baca66e302c861679 (diff) | |
parent | adac97b5372322be5154996974a6496198105d16 (diff) |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery/tests/Database_Test.php')
-rw-r--r-- | modules/gallery/tests/Database_Test.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/gallery/tests/Database_Test.php b/modules/gallery/tests/Database_Test.php index 861f7bba..730785e2 100644 --- a/modules/gallery/tests/Database_Test.php +++ b/modules/gallery/tests/Database_Test.php @@ -130,6 +130,13 @@ class Database_Test extends Gallery_Unit_Test_Case { $this->assert_same($expected, $sql); } + function prefix_replacement_for_rename_table_test() { + $db = Database::instance("mock"); + $this->assert_same( + "RENAME TABLE g_test TO g_new_test", + $db->add_table_prefixes("RENAME TABLE {test} TO {new_test}")); + } + function prefix_no_replacement_test() { $sql = db::build("mock") ->from("test_tables") |