X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F23dumpmore.t;fp=t%2F23dumpmore.t;h=0ca9461e8a20eda36f12fa4478362e6a49ff70d2;hb=9890b10ce0d06d1f4ba1ded6cdb7e130768bf487;hp=0b17dea1a6ec6fe2d3a13bc6ec1a258ed7cabbf8;hpb=533d98c061845dd1d49e6ff94f7acee618b23764;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/t/23dumpmore.t b/t/23dumpmore.t index 0b17dea..0ca9461 100644 --- a/t/23dumpmore.t +++ b/t/23dumpmore.t @@ -305,6 +305,29 @@ $t->dump_test( }, ); +# test qualify_objects +$t->dump_test( + classname => 'DBICTest::DumpMore::1', + options => { + db_schema => [ 'foo_schema', 'bar_schema' ], + qualify_objects => 0, + use_namespaces => 1, + }, + warnings => [ + qr/^db_schema is not supported on SQLite/, + ], + regexes => { + 'Result/Foo' => [ + # the table name should not include the db schema + qr/^\Q__PACKAGE__->table("foo");\E/m, + ], + 'Result/Bar' => [ + # the table name should not include the db schema + qr/^\Q__PACKAGE__->table("bar");\E/m, + ], + }, +); + # test moniker_parts $t->dump_test( classname => 'DBICTest::DumpMore::1',