diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2011-05-17 05:12:51 +0200 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2011-05-17 05:12:51 +0200 |
commit | cca5b123ae93a811b335815b0f754c4e4f44c8d4 (patch) | |
tree | 2a717c53176c162a8b4c0734ad55ab24083e219f /xt/lib/Bugzilla/Test/Search/AndTest.pm | |
parent | a8c38773194820956e91b18735beb59e50a2686c (diff) | |
download | bugzilla-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.pm | 12 |
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; |