Lines 290-295
subtest 'Test _version_compare' => sub {
Link Here
|
290 |
|
290 |
|
291 |
plan tests => 12; |
291 |
plan tests => 12; |
292 |
|
292 |
|
|
|
293 |
t::lib::Mocks::mock_config( 'enable_plugins', 1 ); |
294 |
|
293 |
is( Koha::Plugins::Base::_version_compare( '1.1.1', '2.2.2' ), -1, "1.1.1 is less then 2.2.2" ); |
295 |
is( Koha::Plugins::Base::_version_compare( '1.1.1', '2.2.2' ), -1, "1.1.1 is less then 2.2.2" ); |
294 |
is( Koha::Plugins::Base::_version_compare( '2.2.2', '1.1.1' ), 1, "1.1.1 is greater then 2.2.2" ); |
296 |
is( Koha::Plugins::Base::_version_compare( '2.2.2', '1.1.1' ), 1, "1.1.1 is greater then 2.2.2" ); |
295 |
is( Koha::Plugins::Base::_version_compare( '1.1.1', '1.1.1' ), 0, "1.1.1 is equal to 1.1.1" ); |
297 |
is( Koha::Plugins::Base::_version_compare( '1.1.1', '1.1.1' ), 0, "1.1.1 is equal to 1.1.1" ); |
296 |
- |
|
|