Skip to content

Commit

Permalink
Fix some tests and other referencing issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastocker committed Sep 21, 2023
1 parent f67f2d2 commit 908164e
Show file tree
Hide file tree
Showing 16 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion components/ILIAS/AuthApache_/test/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
*
*****************************************************************************/

require_once __DIR__ . substr(__FILE__, 0, strpos(__FILE__, "components/ILIAS")) . '/vendor/composer/vendor/autoload.php';
require_once substr(__FILE__, 0, strpos(__FILE__, "components/ILIAS")) . '/vendor/composer/vendor/autoload.php';
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*********************************************************************/

/** @noRector */
require_once __DIR__ . substr(__FILE__, 0, strpos(__FILE__, "components/ILIAS")) . "/vendor/composer/vendor/autoload.php";
require_once substr(__FILE__, 0, strpos(__FILE__, "components/ILIAS")) . "/vendor/composer/vendor/autoload.php";

use ILIAS\BackgroundTasks\Implementation\TaskManager\AsyncTaskManager;
use ILIAS\BackgroundTasks\Persistence;
Expand Down
2 changes: 1 addition & 1 deletion components/ILIAS/Certificate_/test/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
/**
* @author Niels Theen <[email protected]>
*/
require_once __DIR__ . substr(__FILE__, 0, strpos(__FILE__, "components/ILIAS")) . '/vendor/composer/vendor/autoload.php';
require_once substr(__FILE__, 0, strpos(__FILE__, "components/ILIAS")) . '/vendor/composer/vendor/autoload.php';
require_once __DIR__ . '/ilCertificateBaseTestCase.php';
2 changes: 1 addition & 1 deletion components/ILIAS/Contact_/BuddySystem/test/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@

declare(strict_types=1);

require_once __DIR__ . substr(__FILE__, 0, strpos(__FILE__, "components/ILIAS")) . '/vendor/composer/vendor/autoload.php';
require_once substr(__FILE__, 0, strpos(__FILE__, "components/ILIAS")) . '/vendor/composer/vendor/autoload.php';
2 changes: 1 addition & 1 deletion components/ILIAS/Contact_/test/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@

declare(strict_types=1);

require_once __DIR__ . substr(__FILE__, 0, strpos(__FILE__, "components/ILIAS")) . '/vendor/composer/vendor/autoload.php';
require_once substr(__FILE__, 0, strpos(__FILE__, "components/ILIAS")) . '/vendor/composer/vendor/autoload.php';
2 changes: 1 addition & 1 deletion components/ILIAS/EventHandling_/test/EventTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
use PHPUnit\Framework\TestCase;
use ILIAS\DI\Container;

require_once __DIR__ . substr(__FILE__, 0, strpos(__FILE__, "components/ILIAS")) . "/vendor/composer/vendor/autoload.php";
require_once substr(__FILE__, 0, strpos(__FILE__, "components/ILIAS")) . "/vendor/composer/vendor/autoload.php";

/**
* Test clipboard repository
Expand Down
4 changes: 2 additions & 2 deletions components/ILIAS/Filesystem/src/Util/LegacyPathHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ private static function listPaths(): array
$storage = CLIENT_DATA_DIR;
$customizing = ILIAS_ABSOLUTE_PATH . '/Customizing';
$customizingRelativeWithLeadingDot = './Customizing';
$libs = ILIAS_ABSOLUTE_PATH . '/libs';
$libsRelativeWithLeadingDot = "./libs";
$libs = ILIAS_ABSOLUTE_PATH . '/vendor';
$libsRelativeWithLeadingDot = "./vendor";
$temp = CLIENT_DATA_DIR . "/temp";
$nodeModules = ILIAS_ABSOLUTE_PATH . '/node_modules';
$nodeModulesWithLeadingDot = './node_modules';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function testDeriveFilesystemFromWithStorageTargetWhichShouldSucceed(): v
*/
public function testDeriveFilesystemFromWithRelativeLibsTargetWhichShouldSucceed(): void
{
$target = './libs/bower/bower_components/mediaelement/build';
$target = './vendor/bower/bower_components/mediaelement/build';

$this->filesystemsMock
->shouldReceive('libs')
Expand All @@ -136,7 +136,7 @@ public function testDeriveFilesystemFromWithRelativeLibsTargetWhichShouldSucceed
*/
public function testDeriveFilesystemFromWithAbsoluteLibsTargetWhichShouldSucceed(): void
{
$target = $this->libsPath . 'libs/bower/bower_components/mediaelement/build';
$target = $this->libsPath . '/vendor/bower/bower_components/mediaelement/build';

$this->filesystemsMock
->shouldReceive('libs')
Expand Down
2 changes: 1 addition & 1 deletion components/ILIAS/Forum_/test/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@

declare(strict_types=1);

require_once __DIR__ . substr(__FILE__, 0, strpos(__FILE__, "components/ILIAS")) . '/vendor/composer/vendor/autoload.php';
require_once substr(__FILE__, 0, strpos(__FILE__, "components/ILIAS")) . '/vendor/composer/vendor/autoload.php';
2 changes: 1 addition & 1 deletion components/ILIAS/Html_/test/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@

declare(strict_types=1);

require_once __DIR__ . substr(__FILE__, 0, strpos(__FILE__, "components/ILIAS")) . '/vendor/composer/vendor/autoload.php';
require_once substr(__FILE__, 0, strpos(__FILE__, "components/ILIAS")) . '/vendor/composer/vendor/autoload.php';
2 changes: 1 addition & 1 deletion components/ILIAS/Mail_/test/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@

declare(strict_types=1);

require_once __DIR__ . substr(__FILE__, 0, strpos(__FILE__, "components/ILIAS")) . '/vendor/composer/vendor/autoload.php';
require_once substr(__FILE__, 0, strpos(__FILE__, "components/ILIAS")) . '/vendor/composer/vendor/autoload.php';
require_once __DIR__ . '/ilMailBaseTest.php';
2 changes: 1 addition & 1 deletion components/ILIAS/Password_/test/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@

declare(strict_types=1);

require_once __DIR__ . substr(__FILE__, 0, strpos(__FILE__, "components/ILIAS")) . '/vendor/composer/vendor/autoload.php';
require_once substr(__FILE__, 0, strpos(__FILE__, "components/ILIAS")) . '/vendor/composer/vendor/autoload.php';
require_once __DIR__ . '/ilPasswordBaseTest.php';
2 changes: 1 addition & 1 deletion components/ILIAS/Saml_/test/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@

declare(strict_types=1);

require_once __DIR__ . substr(__FILE__, 0, strpos(__FILE__, "components/ILIAS")) . '/vendor/composer/vendor/autoload.php';
require_once substr(__FILE__, 0, strpos(__FILE__, "components/ILIAS")) . '/vendor/composer/vendor/autoload.php';
2 changes: 1 addition & 1 deletion components/ILIAS/TermsOfService_/test/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@

declare(strict_types=1);

require_once __DIR__ . substr(__FILE__, 0, strpos(__FILE__, "components/ILIAS")) . '/vendor/composer/vendor/autoload.php';
require_once substr(__FILE__, 0, strpos(__FILE__, "components/ILIAS")) . '/vendor/composer/vendor/autoload.php';
require_once __DIR__ . '/ilTermsOfServiceBaseTest.php';
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

/* Copyright (c) 2021 Thibeau Fuhrer <[email protected]> Extended GPL, see docs/LICENSE */

require_once __DIR__ . substr(__FILE__, 0, strpos(__FILE__, "components/ILIAS")) . '/vendor/composer/vendor/autoload.php';
require_once substr(__FILE__, 0, strpos(__FILE__, "components/ILIAS")) . '/vendor/composer/vendor/autoload.php';

/**
* Class ilCtrlStructureReader is responsible for reading
Expand Down
2 changes: 1 addition & 1 deletion components/ILIAS/WebDAV_/test/ilComponentsWebDAVSuite.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

use PHPUnit\Framework\TestSuite;

require_once __DIR__ . substr(__FILE__, 0, strpos(__FILE__, "components/ILIAS")) . "/vendor/composer/vendor/autoload.php";
require_once substr(__FILE__, 0, strpos(__FILE__, "components/ILIAS")) . "/vendor/composer/vendor/autoload.php";

/**
* @author Stephan Winiker <[email protected]>
Expand Down

0 comments on commit 908164e

Please sign in to comment.