|
Lines 194-202
subtest 'Version upgrade tests' => sub {
Link Here
|
| 194 |
my $plugin = Koha::Plugin::Test->new( { enable_plugins => 1, cgi => CGI->new } ); |
194 |
my $plugin = Koha::Plugin::Test->new( { enable_plugins => 1, cgi => CGI->new } ); |
| 195 |
|
195 |
|
| 196 |
# make sure there's no version on the DB |
196 |
# make sure there's no version on the DB |
| 197 |
$schema->resultset('PluginData') |
197 |
Koha::Plugins::Datas->search( { plugin_class => $plugin->{class}, plugin_key => '__INSTALLED_VERSION__' } )->delete; |
| 198 |
->search( { plugin_class => $plugin->{class}, plugin_key => '__INSTALLED_VERSION__' } ) |
|
|
| 199 |
->delete; |
| 200 |
|
198 |
|
| 201 |
$plugin = Koha::Plugin::Test->new( { enable_plugins => 1, cgi => CGI->new } ); |
199 |
$plugin = Koha::Plugin::Test->new( { enable_plugins => 1, cgi => CGI->new } ); |
| 202 |
my $version = $plugin->retrieve_data('__INSTALLED_VERSION__'); |
200 |
my $version = $plugin->retrieve_data('__INSTALLED_VERSION__'); |
| 203 |
- |
|
|