| Lines 49-55
          SKIP: {
      
      
        Link Here | 
        
          | 49 |     my $plugins_dir = C4::Context->config("pluginsdir"); | 49 |     my $plugins_dir = C4::Context->config("pluginsdir"); | 
        
          | 50 |     skip "plugindir not set", 3 unless defined $plugins_dir; | 50 |     skip "plugindir not set", 3 unless defined $plugins_dir; | 
        
          | 51 |     skip "plugindir not writable", 3 unless -w $plugins_dir; | 51 |     skip "plugindir not writable", 3 unless -w $plugins_dir; | 
          
            
              | 52 |     skip "KitchenSink plugin already installed", 3 if (-f "$plugins_dir/Koha/Plugin/Com/ByWaterSolutions/KitchenSink.pm"); | 52 |     # no need to skip further tests if KitchenSink would already exist | 
        
          | 53 |  | 53 |  | 
        
          | 54 |     my $ae = Archive::Extract->new( archive => "$Bin/KitchenSinkPlugin.kpz", type => 'zip' ); | 54 |     my $ae = Archive::Extract->new( archive => "$Bin/KitchenSinkPlugin.kpz", type => 'zip' ); | 
        
          | 55 |     unless ( $ae->extract( to => $plugins_dir ) ) { | 55 |     unless ( $ae->extract( to => $plugins_dir ) ) { | 
  
    | Lines 59-65
          SKIP: {
      
      
        Link Here | 
        
          | 59 |     $plugin = Koha::Plugin::Com::ByWaterSolutions::KitchenSink->new({ enable_plugins => 1}); | 59 |     $plugin = Koha::Plugin::Com::ByWaterSolutions::KitchenSink->new({ enable_plugins => 1}); | 
        
          | 60 |  | 60 |  | 
        
          | 61 |     ok( -f $plugins_dir . "/Koha/Plugin/Com/ByWaterSolutions/KitchenSink.pm", "KitchenSink plugin installed successfully" ); | 61 |     ok( -f $plugins_dir . "/Koha/Plugin/Com/ByWaterSolutions/KitchenSink.pm", "KitchenSink plugin installed successfully" ); | 
          
            
              | 62 |     Koha::Plugins::Handler->delete({ class => "Koha::Plugin::Com::ByWaterSolutions::KitchenSink" }); | 62 |     Koha::Plugins::Handler->delete({ class => "Koha::Plugin::Com::ByWaterSolutions::KitchenSink", enable_plugins => 1 }); | 
        
          | 63 |     ok( !( -f $plugins_dir . "/Koha/Plugin/Com/ByWaterSolutions/KitchenSink.pm" ), "Koha::Plugins::Handler::delete works correctly." ); | 63 |     ok( !( -f $plugins_dir . "/Koha/Plugin/Com/ByWaterSolutions/KitchenSink.pm" ), "Koha::Plugins::Handler::delete works correctly." ); | 
        
          | 64 | } | 64 | } | 
            
              | 65 |  |  |  | 
            
              | 66 | -  |