Rename project to luxtools, remove client tool
Some checks failed
DokuWiki Default Tasks / all (push) Has been cancelled

This commit is contained in:
2026-01-05 16:51:42 +01:00
parent b64d4d91ff
commit e59970e0b8
15 changed files with 66 additions and 325 deletions

View File

@@ -1,13 +1,13 @@
<?php
namespace dokuwiki\plugin\filetools\test;
namespace dokuwiki\plugin\luxtools\test;
use DokuWikiTest;
/**
* General tests for the filetools plugin
* General tests for the luxtools plugin
*
* @group plugin_filetools
* @group plugin_luxtools
* @group plugins
*/
class GeneralTest extends DokuWikiTest
@@ -31,7 +31,7 @@ class GeneralTest extends DokuWikiTest
$this->assertArrayHasKey('desc', $info);
$this->assertArrayHasKey('url', $info);
$this->assertEquals('filetools', $info['base']);
$this->assertEquals('luxtools', $info['base']);
$this->assertRegExp('/^https?:\/\//', $info['url']);
$this->assertTrue(mail_isvalid($info['email']));
$this->assertRegExp('/^\d\d\d\d-\d\d-\d\d$/', $info['date']);
@@ -61,7 +61,7 @@ class GeneralTest extends DokuWikiTest
$this->assertEquals(
gettype($conf),
gettype($meta),
'Both ' . DOKU_PLUGIN . 'filetools/conf/default.php and ' . DOKU_PLUGIN . 'filetools/conf/metadata.php have to exist and contain the same keys.'
'Both ' . DOKU_PLUGIN . 'luxtools/conf/default.php and ' . DOKU_PLUGIN . 'luxtools/conf/metadata.php have to exist and contain the same keys.'
);
if ($conf !== null && $meta !== null) {
@@ -69,7 +69,7 @@ class GeneralTest extends DokuWikiTest
$this->assertArrayHasKey(
$key,
$meta,
'Key $meta[\'' . $key . '\'] missing in ' . DOKU_PLUGIN . 'filetools/conf/metadata.php'
'Key $meta[\'' . $key . '\'] missing in ' . DOKU_PLUGIN . 'luxtools/conf/metadata.php'
);
}
@@ -77,7 +77,7 @@ class GeneralTest extends DokuWikiTest
$this->assertArrayHasKey(
$key,
$conf,
'Key $conf[\'' . $key . '\'] missing in ' . DOKU_PLUGIN . 'filetools/conf/default.php'
'Key $conf[\'' . $key . '\'] missing in ' . DOKU_PLUGIN . 'luxtools/conf/default.php'
);
}
}

View File

@@ -1,14 +1,14 @@
<?php
namespace dokuwiki\plugin\filetools\test;
namespace dokuwiki\plugin\luxtools\test;
use dokuwiki\plugin\filetools\Path;
use dokuwiki\plugin\luxtools\Path;
use DokuWikiTest;
/**
* Path related tests for the filetools plugin
* Path related tests for the luxtools plugin
*
* @group plugin_filetools
* @group plugin_luxtools
* @group plugins
*/
class PathTest extends DokuWikiTest
@@ -40,15 +40,15 @@ EOT
$expect = [
'C:/xampp/htdocs/wiki/' => [
'root' => 'C:/xampp/htdocs/wiki/',
'web' => '/lib/plugins/filetools/file.php?root=C%3A%2Fxampp%2Fhtdocs%2Fwiki%2F&file=',
'web' => '/lib/plugins/luxtools/file.php?root=C%3A%2Fxampp%2Fhtdocs%2Fwiki%2F&file=',
],
'\\\\server/share/path/' => [
'root' => '\\\\server/share/path/',
'web' => '/lib/plugins/filetools/file.php?root=%5C%5Cserver%2Fshare%2Fpath%2F&file=',
'web' => '/lib/plugins/luxtools/file.php?root=%5C%5Cserver%2Fshare%2Fpath%2F&file=',
],
'/linux/file/path/' => [
'root' => '/linux/file/path/',
'web' => '/lib/plugins/filetools/file.php?root=%2Flinux%2Ffile%2Fpath%2F&file=',
'web' => '/lib/plugins/luxtools/file.php?root=%2Flinux%2Ffile%2Fpath%2F&file=',
],
'/linux/another/path/' => [
'root' => '/linux/another/path/',

View File

@@ -1,35 +1,35 @@
<?php
namespace dokuwiki\plugin\filetools\test;
namespace dokuwiki\plugin\luxtools\test;
use DokuWikiTest;
use DOMWrap\Document;
/**
* Tests for the filetools plugin.
* Tests for the luxtools plugin.
*
* These test assume that the directory filetools has the following content:
* These test assume that the directory luxtools has the following content:
* - exampledir (directory)
* - example2.txt (text file)
* - example.txt (text file)
* - exampleimage.png (image file)
*
* @group plugin_filetools
* @group plugin_luxtools
* @group plugins
*/
class plugin_filetools_test extends DokuWikiTest
class plugin_luxtools_test extends DokuWikiTest
{
public function setUp(): void
{
global $conf;
$this->pluginsEnabled[] = 'filetools';
$this->pluginsEnabled[] = 'luxtools';
parent::setUp();
// Setup config so that access to the TMP directory will be allowed
$conf ['plugin']['filetools']['paths'] = TMP_DIR . '/filelistdata/' . "\n" . 'W> http://localhost/';
$conf ['plugin']['luxtools']['paths'] = TMP_DIR . '/filelistdata/' . "\n" . 'W> http://localhost/';
}