Perltiding the test.
This commit is contained in:
parent
5576588705
commit
b869ac5694
@ -87,15 +87,16 @@ BEGIN {
|
|||||||
verified => $verified,
|
verified => $verified,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
my $developer_dao = Test::MockModule->new('Peace::DAO::Developer');
|
my $developer_dao = Test::MockModule->new('Peace::DAO::Developer');
|
||||||
$developer_dao->mock( recover_by_uuid => sub {
|
$developer_dao->mock(
|
||||||
return $developer;
|
recover_by_uuid => sub {
|
||||||
});
|
return $developer;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
## WHEN
|
## WHEN
|
||||||
my $application = Peace::Model::Application->new(
|
my $application = Peace::Model::Application->new(
|
||||||
developer_uuid => 'larryuuid',
|
developer_uuid => 'larryuuid',
|
||||||
name => $app_name,
|
name => $app_name,
|
||||||
description => $app_description,
|
description => $app_description,
|
||||||
url => $app_url,
|
url => $app_url,
|
||||||
@ -103,9 +104,9 @@ BEGIN {
|
|||||||
flatpak_builder_file => $app_flatpak_builder_file,
|
flatpak_builder_file => $app_flatpak_builder_file,
|
||||||
verified => $app_verified,
|
verified => $app_verified,
|
||||||
dbh => $dbh,
|
dbh => $dbh,
|
||||||
);
|
);
|
||||||
|
|
||||||
## THEN
|
## THEN
|
||||||
ok $application->isa('Peace::Model::Application');
|
ok $application->isa('Peace::Model::Application');
|
||||||
ok $application->developer->isa('Peace::Model::Developer');
|
ok $application->developer->isa('Peace::Model::Developer');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user