X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F86sqlt.t;h=3430cec8c3abe339ed601b61bea03f506cfca332;hb=f8583f8f51fd7ac8eeb348ad390219152a8a3bf8;hp=043aa95a879eca5296b5844c726c8a68d5e9cb18;hpb=427c4089f5c034cc42d36cfeee4259e7487adb2d;p=dbsrgits%2FDBIx-Class.git diff --git a/t/86sqlt.t b/t/86sqlt.t index 043aa95..3430cec 100644 --- a/t/86sqlt.t +++ b/t/86sqlt.t @@ -12,6 +12,14 @@ BEGIN { unless DBIx::Class::Optional::Dependencies->req_ok_for ('deploy') } +my $custom_deployment_statements_called = 0; + +sub DBICTest::Schema::deployment_statements { + $custom_deployment_statements_called = 1; + my $self = shift; + return $self->next::method(@_); +} + my $schema = DBICTest->init_schema (no_deploy => 1); @@ -69,6 +77,7 @@ my $schema = DBICTest->init_schema (no_deploy => 1); $schema->deploy; # do not remove, this fires the is() test in the callback above ok($deploy_hook_called, 'deploy hook got called'); + ok($custom_deployment_statements_called, '->deploy used the schemas deploy_statements method'); }