diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2008-11-12 00:14:41 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2008-11-12 00:14:41 +0000 |
commit | d7080538940d0f9ca89e1b9635d0f92568771261 (patch) | |
tree | 9c400d24f4ca6fbb7cc91836261674a708cb75e6 /t | |
parent | cce814fe922b5b735b4389a3043bb3d4bab74ba3 (diff) |
Adding contact description to contact list display.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2390 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 't')
-rw-r--r-- | t/04-template-handling.t | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/t/04-template-handling.t b/t/04-template-handling.t index 49f67bf2..704969c6 100644 --- a/t/04-template-handling.t +++ b/t/04-template-handling.t @@ -393,10 +393,14 @@ my $contact_request = { entity_id => 1, control_code => 'test1', meta_number => 'test1', + credit_id => '1', entity_class => 1, credit_list => [{ entity_class => 1, meta_number => 'test1', }], + contacts => [{contact => 'ctest1', + description => 'dtest1', + contact_class => '1'}], business_id => 1000, business_types => [{ id => 1, description => 'test1' }, { id => 1000, description => 'test2' }], @@ -415,6 +419,7 @@ $contact_template->render($contact_request); my @output = get_output_line_array($contact_template); is(grep (/value="1" selected/, @output), 0, 'Select box Value 1 unselected'); is(grep (/value="1000" selected/, @output), 1, 'Select box Value 1000 selected'); +is(grep (/<td class="description">dtest1/, @output), 1, 'Contact description shows'); # Functions |