|
Lines 124-129
is( $club_template->club_template_enrollment_fields->count,
Link Here
|
| 124 |
2, 'Club template has two enrollment fields' ); |
124 |
2, 'Club template has two enrollment fields' ); |
| 125 |
|
125 |
|
| 126 |
## Create a club based on this template |
126 |
## Create a club based on this template |
|
|
127 |
Koha::Club->new( |
| 128 |
{ |
| 129 |
club_template_id => $club_template->id, |
| 130 |
name => "Test Expired Club", |
| 131 |
branchcode => $branchcode, |
| 132 |
date_start => '1900-01-01', |
| 133 |
date_end => '1900-01-02', |
| 134 |
} |
| 135 |
)->store(); |
| 136 |
|
| 127 |
my $club = Koha::Club->new( |
137 |
my $club = Koha::Club->new( |
| 128 |
{ |
138 |
{ |
| 129 |
club_template_id => $club_template->id, |
139 |
club_template_id => $club_template->id, |
| 130 |
- |
|
|