[Rt-commit] rt 03/05: Add tests for required Name for articles

Jim Brandt jbrandt at bestpractical.com
Fri Jul 9 11:54:22 EDT 2021


This is an automated email from the git hooks/post-receive script.

jbrandt pushed a commit to branch 5.0/articles-unique-only-within-own-class2
in repository rt.

commit 83b7ee28b63d6599769d4cffd6655c34d3edb4a5
Author: Jim Brandt <jbrandt at bestpractical.com>
AuthorDate: Fri Jul 9 10:30:17 2021 -0400

    Add tests for required Name for articles
---
 t/articles/article.t | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/t/articles/article.t b/t/articles/article.t
index 716650c0d9..cf67ba6a19 100644
--- a/t/articles/article.t
+++ b/t/articles/article.t
@@ -27,6 +27,12 @@ ok (UNIVERSAL::isa($article, 'RT::Record'));
 ok (UNIVERSAL::isa($article, 'DBIx::SearchBuilder::Record') , "It's a searchbuilder record!");
 
 
+($id, $msg) = $article->Create( Class => $CLASS, Summary => $CLASS, Name => undef);
+ok (!$id, $msg);
+
+($id, $msg) = $article->Create( Class => $CLASS, Summary => $CLASS, Name => '');
+ok (!$id, $msg);
+
 ($id, $msg) = $article->Create( Class => $CLASS, Summary => $CLASS, Name => 'test 1');
 ok ($id, $msg);
 $article->Load($id);

-- 
To stop receiving notification emails like this one, please contact
sysadmin at bestpractical.com.


More information about the rt-commit mailing list