-sub run_tests {\r
+sub run_tests {
+my $schema = shift;\r
\r
my ($dsn, $user, $pass) = @ENV{map { "DBICTEST_MSSQL_${_}" } qw/DSN USER PASS/};\r
\r
\r
plan tests => 4;\r
\r
-DBICTest->class("Schema")->compose_connection( 'MSSQLTest' => $dsn, $user, $pass );\r
+$schema->resultset("Schema")->compose_connection( 'MSSQLTest' => $dsn, $user, $pass );\r
\r
-my $dbh = MSSQLTest::Artist->storage->dbh;\r
+my $dbh = MSSQLTest->schema->storage->dbh;\r
\r
$dbh->do("IF OBJECT_ID('artist', 'U') IS NOT NULL\r
DROP TABLE artist");\r