X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fstorage%2Fon_connect_call.t;h=bea50850f4345c9c5185d645a86b5073b9006122;hb=cba24c705d273c776d0742440a49620e01dec645;hp=12894ee4a4454a11bf6761f20425db351d26ba9b;hpb=46bb50b7733b8dcb09800acd2920940a3e2c8edc;p=dbsrgits%2FDBIx-Class.git diff --git a/t/storage/on_connect_call.t b/t/storage/on_connect_call.t index 12894ee..bea5085 100644 --- a/t/storage/on_connect_call.t +++ b/t/storage/on_connect_call.t @@ -10,7 +10,7 @@ use DBIx::Class::Storage::DBI; # !!! do not replace this with done_testing - tests reside in the callbacks # !!! number of calls is important -use Test::More tests => 15; +use Test::More tests => 16; # !!! my $schema = DBICTest::Schema->clone; @@ -90,8 +90,9 @@ my $schema = DBICTest::Schema->clone; ), 'connection()'; ok (! $schema->storage->connected, 'start disconnected'); - my $parser = $schema->storage->datetime_parser; - $schema->storage->ensure_connected; + $schema->storage->_determine_driver; # this should connect due to the coderef + + ok ($schema->storage->connected, 'determine driver connects'); $schema->storage->disconnect; }