use strict; use warnings; use Test::More tests => 4; { package App; use Moo; with 'Dancer2::Core::Role::Engine'; sub hook_aliases { +{} } sub supported_hooks {} } my $app = App->new; isa_ok( $app, 'App' ); can_ok( $app, qw ); # attributes can_ok( $app, qw ); # methods ok( $app->DOES('Dancer2::Core::Role::Hookable'), 'App consumes Dancer2::Core::Role::Hookable', );