diff options
Diffstat (limited to 'modules/simpletest/tests/taxonomy_test.module')
-rw-r--r-- | modules/simpletest/tests/taxonomy_test.module | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/modules/simpletest/tests/taxonomy_test.module b/modules/simpletest/tests/taxonomy_test.module index 2fa05b15c..beda61a5d 100644 --- a/modules/simpletest/tests/taxonomy_test.module +++ b/modules/simpletest/tests/taxonomy_test.module @@ -22,7 +22,12 @@ function taxonomy_test_taxonomy_term_insert($term) { if (!empty($term->antonyms)) { foreach (explode ("\n", str_replace("\r", '', $term->antonyms)) as $antonym) { if ($antonym) { - db_insert('term_antonym')->fields(array('tid' => $term->tid, 'name' => rtrim($antonym)))->execute(); + db_insert('term_antonym') + ->fields(array( + 'tid' => $term->tid, + 'name' => rtrim($antonym), + )) + ->execute(); } } } @@ -36,7 +41,12 @@ function taxonomy_test_taxonomy_term_update($term) { if (!empty($term->antonyms)) { foreach (explode ("\n", str_replace("\r", '', $term->antonyms)) as $antonym) { if ($antonym) { - db_insert('term_antonym')->fields(array('tid' => $term->tid, 'name' => rtrim($antonym)))->execute(); + db_insert('term_antonym') + ->fields(array( + 'tid' => $term->tid, + 'name' => rtrim($antonym), + )) + ->execute(); } } } @@ -46,7 +56,9 @@ function taxonomy_test_taxonomy_term_update($term) { * Implement hook_taxonomy_term_delete(). */ function taxonomy_test_taxonomy_term_delete($term) { - db_delete('term_antonym')->condition('tid', $term->tid)->execute(); + db_delete('term_antonym') + ->condition('tid', $term->tid) + ->execute(); } /** |