|
Lines 41-48
$ENV{REMOTE_ADDR} = '127.0.0.1';
Link Here
|
| 41 |
my $t = Test::Mojo->new('Koha::REST::V1'); |
41 |
my $t = Test::Mojo->new('Koha::REST::V1'); |
| 42 |
my $tx; |
42 |
my $tx; |
| 43 |
|
43 |
|
| 44 |
my $categorycode = Koha::Database->new()->schema()->resultset('Category')->first()->categorycode(); |
44 |
my $categorycode = $builder->build({ source => 'Category' })->{categorycode}; |
| 45 |
my $branchcode = Koha::Database->new()->schema()->resultset('Branch')->first()->branchcode(); |
45 |
my $branchcode = $builder->build({ source => 'Branch' })->{branchcode}; |
| 46 |
|
46 |
|
| 47 |
# User without any permissions |
47 |
# User without any permissions |
| 48 |
my $nopermission = $builder->build({ |
48 |
my $nopermission = $builder->build({ |
| 49 |
- |
|
|