preserve relnames when another FK is added (RT#62424), remove resultset_components...
[dbsrgits/DBIx-Class-Schema-Loader.git] / t / 16mssql_common.t
index 7455727..805352b 100644 (file)
@@ -2,7 +2,8 @@ use strict;
 use warnings;
 use Test::More;
 use Test::Exception;
-use Test::Warn;
+use DBIx::Class::Schema::Loader::Utils 'warnings_exist_silent';
+use namespace::clean;
 
 # use this if you keep a copy of DBD::Sybase linked to FreeTDS somewhere else
 BEGIN {
@@ -257,7 +258,7 @@ my $tester = dbixcsl_common_tests->new(
             my $dbh = $schema->storage->dbh;
             $dbh->do("DROP TABLE mssql_loader_test3");
 
-            warnings_exist { $schema->rescan }
+            warnings_exist_silent { $schema->rescan }
               qr/^Bad table or view 'mssql_loader_test4'/, 'bad view ignored';
 
             throws_ok {