]> git.koha-community.org Git - koha.git/commit
Bug 7804 - Add Koha Plugin System - Unit Tests
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 14 Jan 2013 13:23:46 +0000 (08:23 -0500)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Wed, 20 Mar 2013 18:49:53 +0000 (14:49 -0400)
commit74ea6209bc2adc26058d7f0a0ba2170e1ee4ad2e
tree4047c9b6ec333e3d2e5c057b193555fe5c27c9ec
parent5eabc672fd818b312b3dbc8e2c19defcca97ed13
Bug 7804 - Add Koha Plugin System - Unit Tests

Tests Ok
~/kohaclone$ perl t/db_dependent/Plugins.t
1..15
ok 1 - use Koha::Plugins;
ok 2 - use Koha::Plugins::Handler;
ok 3 - use Koha::Plugins::Base;
ok 4 - use Koha::Plugin::Test;
ok 5 - Test can_load
ok 6 - Test plugin class isa Koha::Plugin::Test
ok 7 - Test plugin parent class isa Koha::Plugins::Base
ok 8 - Test plugin can report
ok 9 - Test plugin can tool
ok 10 - Test plugin can configure
ok 11 - Test plugin can install
ok 12 - Test plugin can install
ok 13 - Test $plugin->get_metadata()
ok 14 - Test $plugin->get_qualified_table_name()
ok 15 - Test $plugin->get_plugin_http_path()

(and all others as well)

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Koha/Plugins.pm
Koha/Plugins/Base.pm
Koha/Plugins/Handler.pm
t/Koha/Plugin/Test.pm [new file with mode: 0644]
t/db_dependent/Plugins.t [new file with mode: 0755]