Bug 23152: Add tests
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 19 Jun 2019 02:39:45 +0000 (21:39 -0500)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 24 Jun 2019 15:36:53 +0000 (16:36 +0100)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

t/db_dependent/TestBuilder.t

index 6ad1810..3fb431d 100644 (file)
@@ -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" );
         }
     };