summaryrefslogtreecommitdiffstats
path: root/t/20-inheritance.t
diff options
context:
space:
mode:
Diffstat (limited to 't/20-inheritance.t')
-rw-r--r--t/20-inheritance.t12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/20-inheritance.t b/t/20-inheritance.t
index d08b82a..b5e7b67 100644
--- a/t/20-inheritance.t
+++ b/t/20-inheritance.t
@@ -54,6 +54,18 @@ use Test::More;
{
my $parent = Parent->new;
+ ok($parent->has_service('foo'), "parent has foo");
+ ok($parent->has_service('bar'), "parent has bar");
+
+ my $child = Child->new;
+ ok($child->has_service('foo'), "child has foo");
+ ok($child->has_service('bar'), "child has bar");
+ ok($child->has_service('baz'), "child has baz");
+ ok($child->has_service('quux'), "child has quux");
+}
+
+{
+ my $parent = Parent->new;
isa_ok($parent, 'Bread::Board::Container');
is($parent->foo, 'FOO');
is($parent->bar, 'FOOBAR');