Perltiding the test.

This commit is contained in:
sergiotarxz 2022-03-16 16:13:44 +01:00
parent 5576588705
commit b869ac5694

View File

@ -87,15 +87,16 @@ BEGIN {
verified => $verified,
);
my $developer_dao = Test::MockModule->new('Peace::DAO::Developer');
$developer_dao->mock( recover_by_uuid => sub {
return $developer;
});
$developer_dao->mock(
recover_by_uuid => sub {
return $developer;
}
);
## WHEN
my $application = Peace::Model::Application->new(
developer_uuid => 'larryuuid',
developer_uuid => 'larryuuid',
name => $app_name,
description => $app_description,
url => $app_url,
@ -103,9 +104,9 @@ BEGIN {
flatpak_builder_file => $app_flatpak_builder_file,
verified => $app_verified,
dbh => $dbh,
);
);
## THEN
ok $application->isa('Peace::Model::Application');
ok $application->developer->isa('Peace::Model::Developer');
## THEN
ok $application->isa('Peace::Model::Application');
ok $application->developer->isa('Peace::Model::Developer');
}