[Rt-commit] rt branch, 4.4/include-article-queue, repushed
Craig Kaiser
craig at bestpractical.com
Wed Feb 7 15:56:28 EST 2018
The branch 4.4/include-article-queue was deleted and repushed:
was aa84fca657ae3d3454528d96aebe88768d696320
now 50709ea8bd65f3d15f9bbb269b9f90ffc4e7c3e8
1: f2d31f1db = 1: f2d31f1db Add test for 'Order by' dropdown content
2: 0494b9529 = 2: 0494b9529 Re-add Queue to 'Order by' dropdown in Search Builder
3: d2eef49ea = 3: d2eef49ea Add Default Article option for Queues
5: aa84fca65 ! 4: 8b3698433 Test Queue Default Article sub routines
@@ -1,9 +1,9 @@
Author: Craig Kaiser <craig at bestpractical.com>
- Add test for default Article content on create.html
+ Test Queue Default Article sub routines
- Test to ensure that the default Articles content is rendered on
- Create.html for Tickets in that Queue.
+ Perform tests on sub QueueDefaultArticle and sub SetQueueDefaultArticle
+ from Queue.pm.
diff --git a/t/api/queue.t b/t/api/queue.t
--- a/t/api/queue.t
@@ -54,39 +54,3 @@
+
done_testing;
-diff --git a/t/web/ticket-create-utf8.t b/t/web/ticket-create-utf8.t
---- a/t/web/ticket-create-utf8.t
-+++ b/t/web/ticket-create-utf8.t
-@@
- use strict;
- use warnings;
-
--use RT::Test tests => 43;
-+use RT::Test tests => 49;
-
- my $ru_test = "\x{442}\x{435}\x{441}\x{442}";
- my $ru_support = "\x{43f}\x{43e}\x{434}\x{434}\x{435}\x{440}\x{436}\x{43a}\x{430}";
-@@
- }
- }
-
-+my $article = RT::Article->new($RT::SystemUser);
-+my ( $id, $msg ) = $article->Create(
-+ Class => 'General',
-+ Name => 'My Article',
-+ 'CustomField-Content' => 'My Article Test Content',
-+);
-+ok( $id, $msg );
-+(my $ret, $msg) = $article->Load(1);
-+ok ($ret, $msg);
-+
-+my $queue = RT::Queue->new(RT->SystemUser);
-+$queue->Load('General');
-+ok( $queue, 'Loaded General Queue' );
-+($ret, $msg) = $queue->SetQueueDefaultArticle($article->id);
-+ok( $ret, $msg );
-+
-+ok $m->login(root => 'password'), "logged in";
-+$m->goto_create_ticket('General');
-+$m->scraped_id_is('Content', '#1: My Article <br />-------------- <br />Content: <br />------- <br />My Article Test Content <br />');
-+
4: 51eb2c366 = 5: 570f84394 Make default Article content show on Ticket create
-: ------- > 6: 50709ea8b Test Ticket create web UI when Default Article
More information about the rt-commit
mailing list