Move a number of tests to xt, restructure extra lists
[dbsrgits/DBIx-Class.git] / xt / extra / diagnostics / search_in_void_ctx.t
CommitLineData
0e7a447e 1use strict;
2use warnings;
3
4use Test::More;
5use Test::Exception;
6
7use lib qw(t/lib);
8use DBICTest;
9
10my $schema = DBICTest->init_schema(no_deploy => 1);
11
12throws_ok {
13 $schema->resultset('Artist')->search
14} qr/\Qsearch is *not* a mutator/, 'Proper exception on search in void ctx';
15
16done_testing;