Lines 102-112
my $updated_layout = C4::Labels::Layout->retrieve(layout_id => $sav_results);
Link Here
|
102 |
is_deeply($updated_layout, $saved_layout, "Updated layout object is the expected"); |
102 |
is_deeply($updated_layout, $saved_layout, "Updated layout object is the expected"); |
103 |
|
103 |
|
104 |
# Testing Layout->get_text_wrap_cols() |
104 |
# Testing Layout->get_text_wrap_cols() |
105 |
is($updated_layout->get_text_wrap_cols(label_width => 180, left_text_margin => 18), 23, |
105 |
is($updated_layout->get_text_wrap_cols(label_width => 180, left_text_margin => 18), 21, |
106 |
"Layout->get_text_wrap_cols()"); |
106 |
"Layout->get_text_wrap_cols()"); |
107 |
|
107 |
|
108 |
# Testing Layout->delete() |
108 |
# Testing Layout->delete() |
109 |
my $del_results = $updated_layout->delete(); |
109 |
my $del_results = $updated_layout->delete(); |
110 |
ok($del_results ne -1, "Layout->delete() success"); |
110 |
ok( ! defined($del_results) , "Layout->delete() success"); |
111 |
|
111 |
|
112 |
1; |
112 |
1; |
113 |
- |
|
|