[Rt-commit] rt branch, 4.2/article-create, repushed
Alex Vandiver
alexmv at bestpractical.com
Wed Mar 4 18:55:13 EST 2015
The branch 4.2/article-create was deleted and repushed:
was 4e4eda15f8e6dabb0eac1e3cb962e56265fb6028
now 094b91fb88c4d0b324320e8d803d3335fa9fdce3
1: c122647 = 1: c122647 Distinguish between "no classes exist" and "none visible to user"
2: 5209d26 = 2: 5209d26 Limit the listing to classes with CreateArticle
3: c41f11b = 3: c41f11b Provide a better message if there are no potential classes to create in
4: 4e4eda1 ! 4: 094b91f Skip the Class selection page if there is only one valid option
@@ -31,3 +31,44 @@
use RT::SavedSearch;
my @results;
+
+diff --git a/t/articles/search-interface.t b/t/articles/search-interface.t
+--- a/t/articles/search-interface.t
++++ b/t/articles/search-interface.t
+@@
+ use strict;
+ use warnings;
+
+-use RT::Test tests => 44;
++use RT::Test tests => undef;
+
+ use RT::CustomField;
+ use RT::Queue;
+@@
+ # Variables to test return values
+ my ($ret, $msg);
+
+-# Create a test class
++# Create two classes
+ my $class = RT::Class->new($RT::SystemUser);
+-($ret, $msg) = $class->Create('Name' => 'tlaTestClass-'.$$,
++($ret, $msg) = $class->Create('Name' => 'First-class',
+ 'Description' => 'A general-purpose test class');
+ ok($ret, "Test class created");
+
++($ret, $msg) = $class->Create('Name' => 'Second-class',
++ 'Description' => 'Another class');
++ok($ret, "Test class created");
+
+ my $questionCF = RT::CustomField->new($RT::SystemUser);
+ my $answerCF = RT::CustomField->new($RT::SystemUser);
+@@
+ $m->text_contains('hoi polloi 4');
+ }
+
++undef $m;
++done_testing;
++
+ # When you send $m to this sub, it must be on a page with
+ # a Search link.
+ sub DoArticleSearch{
More information about the rt-commit
mailing list