added more many_to_many tests and changed add_to_rel to accept linking table column...
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest.pm
index 78f788a..963eb4c 100755 (executable)
@@ -149,9 +149,9 @@ sub populate_schema {
     ]);
 
     $schema->populate('FourKeys', [
-        [ qw/foo bar hello goodbye/ ],
-        [ 1, 2, 3, 4 ],
-        [ 5, 4, 3, 6 ],
+        [ qw/foo bar hello goodbye sensors/ ],
+        [ 1, 2, 3, 4, 'online' ],
+        [ 5, 4, 3, 6, 'offline' ],
     ]);
 
     $schema->populate('OneKey', [
@@ -218,6 +218,11 @@ sub populate_schema {
         [ 18, 1, 3, "Beehind You"],
     ]);
 
+    $schema->populate('Event', [
+        [ qw/id starts_at/ ],
+        [ 1, '2006-04-25 22:24:33' ],
+    ]);
+
     $schema->populate('Link', [
         [ qw/id title/ ],
         [ 1, 'aaa' ]