diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-10-05 10:39:01 +0200 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-10-05 10:39:01 +0200 |
commit | 7307c8c748e3245d65a25c016e7d92c6c7ae2aa4 (patch) | |
tree | 97fa8ea6b7482fad71cecc5195c2a81e6cc866c8 /xt/lib/Bugzilla/Test/Search/InjectionTest.pm | |
parent | daa533e7c6d1c6ff2e8600c5178ac75bf7a2538c (diff) | |
download | bugzilla-7307c8c748e3245d65a25c016e7d92c6c7ae2aa4.tar.gz bugzilla-7307c8c748e3245d65a25c016e7d92c6c7ae2aa4.tar.xz |
Bug 26074 - Ability to limit search by number of Comments
r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'xt/lib/Bugzilla/Test/Search/InjectionTest.pm')
-rw-r--r-- | xt/lib/Bugzilla/Test/Search/InjectionTest.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xt/lib/Bugzilla/Test/Search/InjectionTest.pm b/xt/lib/Bugzilla/Test/Search/InjectionTest.pm index 1bd9fd82c..41f5fcdc2 100644 --- a/xt/lib/Bugzilla/Test/Search/InjectionTest.pm +++ b/xt/lib/Bugzilla/Test/Search/InjectionTest.pm @@ -54,7 +54,11 @@ sub sql_error_ok { return $_[0]->_known_broken->{sql_error} } # Injection tests only skip fields on certain dbs. sub field_not_yet_implemented { my ($self) = @_; - my $skip_for_dbs = $self->_known_broken->{db_skip}; + # We use the constant directly because we don't want operator_ok + # or field_ok to stop us. + my $broken = INJECTION_BROKEN_FIELD->{$self->field} + || INJECTION_BROKEN_FIELD->{$self->field_object->type}; + my $skip_for_dbs = $broken->{db_skip}; return undef if !$skip_for_dbs; my $dbh = Bugzilla->dbh; if (my ($skip) = grep { $dbh->isa("Bugzilla::DB::$_") } @$skip_for_dbs) { |