Lines 133-138
subtest 'get() tests' => sub {
Link Here
|
133 |
"//$userid:$password@/api/v1/suggestions/" . $suggestion->id ) |
133 |
"//$userid:$password@/api/v1/suggestions/" . $suggestion->id ) |
134 |
->status_is(200)->json_is( $suggestion->to_api ); |
134 |
->status_is(200)->json_is( $suggestion->to_api ); |
135 |
|
135 |
|
|
|
136 |
my $authorised_value = Koha::AuthorisedValue->new( |
137 |
{ |
138 |
category => 'SUGGEST_STATUS', |
139 |
authorised_value => 'FREDERIC' |
140 |
} |
141 |
)->store; |
136 |
$suggestion->STATUS('FREDERIC')->store->discard_changes; |
142 |
$suggestion->STATUS('FREDERIC')->store->discard_changes; |
137 |
|
143 |
|
138 |
$t->get_ok( "//$userid:$password@/api/v1/suggestions/" . $suggestion->id )->status_is(200) |
144 |
$t->get_ok( "//$userid:$password@/api/v1/suggestions/" . $suggestion->id )->status_is(200) |
139 |
- |
|
|