summaryrefslogtreecommitdiffstats
path: root/xt/lib/Bugzilla/Test/Search/AndTest.pm
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2011-05-17 05:12:51 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2011-05-17 05:12:51 +0200
commitcca5b123ae93a811b335815b0f754c4e4f44c8d4 (patch)
tree2a717c53176c162a8b4c0734ad55ab24083e219f /xt/lib/Bugzilla/Test/Search/AndTest.pm
parenta8c38773194820956e91b18735beb59e50a2686c (diff)
downloadbugzilla-cca5b123ae93a811b335815b0f754c4e4f44c8d4.tar.gz
bugzilla-cca5b123ae93a811b335815b0f754c4e4f44c8d4.tar.xz
Bug 657542: Make the AND/OR tests for xt/search.t function properly and
catch known-broken tests as it's supposed to. r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'xt/lib/Bugzilla/Test/Search/AndTest.pm')
-rw-r--r--xt/lib/Bugzilla/Test/Search/AndTest.pm12
1 files changed, 5 insertions, 7 deletions
diff --git a/xt/lib/Bugzilla/Test/Search/AndTest.pm b/xt/lib/Bugzilla/Test/Search/AndTest.pm
index b4554584b..b7f8b3cab 100644
--- a/xt/lib/Bugzilla/Test/Search/AndTest.pm
+++ b/xt/lib/Bugzilla/Test/Search/AndTest.pm
@@ -40,12 +40,10 @@ sub bug_is_contained {
return all { $_->bug_is_contained($number) } $self->field_tests;
}
-########################
-# SKIP & TODO Messages #
-########################
-
-sub _join_skip { () }
-sub _join_broken_constant { {} }
+sub _bug_will_actually_be_contained {
+ my ($self, $number) = @_;
+ return all { $_->will_actually_contain_bug($number) } $self->field_tests;
+}
##############################
# Bugzilla::Search arguments #
@@ -65,4 +63,4 @@ sub search_params {
return \%params;
}
-1; \ No newline at end of file
+1;