my
$obj
= MARC::Convert::Wikidata::Object->new;
is_deeply(
$obj
->photographers,
[],
'Get default photographers list.'
,
);
my
$photographer
= MARC::Convert::Wikidata::Object::People->new(
'date_of_birth'
=>
'1952'
,
'date_of_death'
=>
'2009'
,
'name'
=>
'Renco'
,
'nkcr_aut'
=>
'xx0189222'
,
'surname'
=> decode_utf8(
'Kosinožić'
),
);
$obj
= MARC::Convert::Wikidata::Object->new(
'photographers'
=> [
$photographer
],
);
my
@photographers
=
$obj
->photographers;
is(
@photographers
, 1,
'Get number of photoigraphers.'
);