From efe17edd37daff856ec4d508396dc2f17b24ac74 Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Date: Tue, 18 Jun 2019 21:39:45 -0500
Subject: [PATCH] Bug 23152: Add tests

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
---
 t/db_dependent/TestBuilder.t | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/t/db_dependent/TestBuilder.t b/t/db_dependent/TestBuilder.t
index 6ad1810706..3fb431da9f 100644
--- a/t/db_dependent/TestBuilder.t
+++ b/t/db_dependent/TestBuilder.t
@@ -386,6 +386,8 @@ subtest 'build_object() tests' => sub {
             eval "require $module";;
             my $object = $builder->build_object( { class => $module } );
             is( ref($object), $module->object_class, "Testing $module" );
+            eval {$object->get_from_storage};
+            is( $@, '', "Module $module should have koha_object[s]_class method if needed" );
         }
     };
 
-- 
2.20.1