JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
unit_test_func requires that type matches
[wfpl.git] / unit_tests / db.php
index a2aeb1b..f6b5325 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-#  Copyright (C) 2009 Jason Woofenden
+#  Copyright (C) 2010 Jason Woofenden
 #
 #  This program is free software: you can redistribute it and/or modify
 #  it under the terms of the GNU General Public License as published by
@@ -68,7 +68,7 @@ function test_db_reposition() {
 
        foreach($args as $arg_str) {
                list($src, $dest, $space, $c1, $c2, $c3) = str_split($arg_str);
-               $ord = db_reposition($table, $before[$src], $dest);
+               $ord = db_reposition($table, $before[$src], $dest, 'ord', 'test record');
                db_update($table, 'ord', $ord, 'where id=%i', $before[$src]);
                $after = db_get_column($table, 'id', 'order by ord');
                $ords = db_get_column($table, 'ord', 'order by ord');