diff --git a/phpunit-pgsql.xml.dist b/phpunit-pgsql.xml.dist index d385eca4d863a..e0031b4ce6d2f 100644 --- a/phpunit-pgsql.xml.dist +++ b/phpunit-pgsql.xml.dist @@ -2,10 +2,10 @@ - ./tests/Unit/Libraries + ./tests/Unit - ./tests/Integration/Libraries + ./tests/Integration diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 70ef63e7cadd6..80992eea95e21 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -2,10 +2,10 @@ - ./tests/Unit/Libraries + ./tests/Unit - ./tests/Integration/Libraries + ./tests/Integration diff --git a/tests/Unit/Libraries/Cms/Feed/Parser/AtomParserTest.php b/tests/Unit/Libraries/Cms/Feed/Parser/AtomParserTest.php index 0eaa47ac68c5c..b19e4c8072e0d 100644 --- a/tests/Unit/Libraries/Cms/Feed/Parser/AtomParserTest.php +++ b/tests/Unit/Libraries/Cms/Feed/Parser/AtomParserTest.php @@ -330,7 +330,8 @@ public function testInitialiseSetsDefaultVersionWithXmlDocType() { $dummyXml = ' '; - $reader = \XMLReader::XML($dummyXml); + $reader = new XMLReader(); + $reader->xml($dummyXml); $atomParser = new AtomParser($reader); $atomParser->parse(); @@ -356,7 +357,8 @@ public function testInitialiseSetsDefaultVersion() Joomla! Unit test '; - $reader = \XMLReader::XML($dummyXml); + $reader = new XMLReader(); + $reader->xml($dummyXml); $atomParser = new AtomParser($reader); // same logic as FeedFactory.php : skip head record @@ -395,7 +397,8 @@ public function testInitialiseSetsOldVersion() Joomla! Unit test '; - $reader = \XMLReader::XML($dummyXml); + $reader = new XMLReader(); + $reader->xml($dummyXml); $atomParser = new AtomParser($reader); // same logic as FeedFactory.php : skip head record diff --git a/tests/Unit/Libraries/Cms/Feed/Parser/RssParserTest.php b/tests/Unit/Libraries/Cms/Feed/Parser/RssParserTest.php index f31997c92312d..5fe8089274064 100644 --- a/tests/Unit/Libraries/Cms/Feed/Parser/RssParserTest.php +++ b/tests/Unit/Libraries/Cms/Feed/Parser/RssParserTest.php @@ -589,7 +589,8 @@ public function testParseSetsVersion() Test Channel '; - $reader = \XMLReader::XML($dummyXml); + $reader = new XMLReader(); + $reader->xml($dummyXml); $rssParser = new RssParser($reader); // same logic as FeedFactory.php : skip head record diff --git a/tests/Unit/Plugin/Task/Checkfiles/Extension/CheckfilesPluginTest.php b/tests/Unit/Plugin/Task/Checkfiles/Extension/CheckfilesPluginTest.php index 3214e04d6b85f..9d79c1f112220 100644 --- a/tests/Unit/Plugin/Task/Checkfiles/Extension/CheckfilesPluginTest.php +++ b/tests/Unit/Plugin/Task/Checkfiles/Extension/CheckfilesPluginTest.php @@ -32,6 +32,15 @@ */ class CheckfilesPluginTest extends UnitTestCase { + /** + * The temporary folder. + * + * @var string + * + * @since __DEPLOY_VERSION__ + */ + private $tmpFolder; + /** * Setup * @@ -41,13 +50,16 @@ class CheckfilesPluginTest extends UnitTestCase */ public function setUp(): void { - if (!is_dir(__DIR__ . '/tmp')) { - mkdir(__DIR__ . '/tmp'); + // Dir must be random for parallel automated tests + $this->tmpFolder = JPATH_ROOT . '/tmp/' . rand(); + + if (!is_dir($this->tmpFolder)) { + mkdir($this->tmpFolder); } $image = imagecreate(200, 200); imagecolorallocate($image, 255, 255, 0); - imagepng($image, __DIR__ . '/tmp/test.png'); + imagepng($image, $this->tmpFolder . '/test.png'); imagedestroy($image); } @@ -60,8 +72,8 @@ public function setUp(): void */ public function tearDown(): void { - if (is_dir(__DIR__ . '/tmp')) { - Folder::delete(__DIR__ . '/tmp'); + if (is_dir($this->tmpFolder)) { + Folder::delete($this->tmpFolder); } } @@ -80,7 +92,7 @@ public function testResize() $app = $this->createStub(CMSApplicationInterface::class); $app->method('getLanguage')->willReturn($language); - $plugin = new Checkfiles(new Dispatcher(), [], __DIR__); + $plugin = new Checkfiles(new Dispatcher(), [], $this->tmpFolder); $plugin->setApplication($app); $task = $this->createStub(Task::class); @@ -90,14 +102,14 @@ public function testResize() 'test', [ 'subject' => $task, - 'params' => (object)['path' => '/tmp', 'dimension' => 'width', 'limit' => 20, 'numImages' => 1] + 'params' => (object)['path' => '/', 'dimension' => 'width', 'limit' => 20, 'numImages' => 1] ] ); $plugin->standardRoutineHandler($event); $this->assertEquals(Status::OK, $event->getResultSnapshot()['status']); - list($width, $height) = getimagesize(__DIR__ . '/tmp/test.png'); + list($width, $height) = getimagesize($this->tmpFolder . '/test.png'); $this->assertEquals(20, $width); $this->assertEquals(20, $height); } @@ -111,7 +123,7 @@ public function testResize() */ public function testResizeWithLimit() { - copy(__DIR__ . '/tmp/test.png', __DIR__ . '/tmp/test1.png'); + copy($this->tmpFolder . '/test.png', $this->tmpFolder . '/test1.png'); $language = $this->createStub(Language::class); $language->method('_')->willReturn('test'); @@ -119,7 +131,7 @@ public function testResizeWithLimit() $app = $this->createStub(CMSApplicationInterface::class); $app->method('getLanguage')->willReturn($language); - $plugin = new Checkfiles(new Dispatcher(), [], __DIR__); + $plugin = new Checkfiles(new Dispatcher(), [], $this->tmpFolder); $plugin->setApplication($app); $task = $this->createStub(Task::class); @@ -129,18 +141,18 @@ public function testResizeWithLimit() 'test', [ 'subject' => $task, - 'params' => (object)['path' => '/tmp', 'dimension' => 'width', 'limit' => 20, 'numImages' => 1] + 'params' => (object)['path' => '/', 'dimension' => 'width', 'limit' => 20, 'numImages' => 1] ] ); $plugin->standardRoutineHandler($event); $this->assertEquals(Status::OK, $event->getResultSnapshot()['status']); - list($width, $height) = getimagesize(__DIR__ . '/tmp/test.png'); + list($width, $height) = getimagesize($this->tmpFolder . '/test.png'); $this->assertEquals(20, $width); $this->assertEquals(20, $height); - list($width, $height) = getimagesize(__DIR__ . '/tmp/test1.png'); + list($width, $height) = getimagesize($this->tmpFolder . '/test1.png'); $this->assertEquals(200, $width); $this->assertEquals(200, $height); } @@ -160,7 +172,7 @@ public function testIgnoreResize() $app = $this->createStub(CMSApplicationInterface::class); $app->method('getLanguage')->willReturn($language); - $plugin = new Checkfiles(new Dispatcher(), [], __DIR__); + $plugin = new Checkfiles(new Dispatcher(), [], $this->tmpFolder); $plugin->setApplication($app); $task = $this->createStub(Task::class); @@ -170,14 +182,14 @@ public function testIgnoreResize() 'test', [ 'subject' => $task, - 'params' => (object)['path' => '/tmp', 'dimension' => 'width', 'limit' => 2000, 'numImages' => 1] + 'params' => (object)['path' => '/', 'dimension' => 'width', 'limit' => 2000, 'numImages' => 1] ] ); $plugin->standardRoutineHandler($event); $this->assertEquals(Status::OK, $event->getResultSnapshot()['status']); - list($width, $height) = getimagesize(__DIR__ . '/tmp/test.png'); + list($width, $height) = getimagesize($this->tmpFolder . '/test.png'); $this->assertEquals(200, $width); $this->assertEquals(200, $height); } @@ -197,7 +209,7 @@ public function testInvalidFolder() $app = $this->createStub(CMSApplicationInterface::class); $app->method('getLanguage')->willReturn($language); - $plugin = new Checkfiles(new Dispatcher(), [], __DIR__); + $plugin = new Checkfiles(new Dispatcher(), [], $this->tmpFolder); $plugin->setApplication($app); $task = $this->createStub(Task::class); @@ -212,7 +224,7 @@ public function testInvalidFolder() ); $plugin->standardRoutineHandler($event); - list($width, $height) = getimagesize(__DIR__ . '/tmp/test.png'); + list($width, $height) = getimagesize($this->tmpFolder . '/test.png'); $this->assertEquals(Status::NO_RUN, $event->getResultSnapshot()['status']); $this->assertEquals(200, $width); $this->assertEquals(200, $height); diff --git a/tests/Unit/Plugin/Task/Requests/Extension/RequestsPluginTest.php b/tests/Unit/Plugin/Task/Requests/Extension/RequestsPluginTest.php index 9b5b1a01476c3..9befd0f251065 100644 --- a/tests/Unit/Plugin/Task/Requests/Extension/RequestsPluginTest.php +++ b/tests/Unit/Plugin/Task/Requests/Extension/RequestsPluginTest.php @@ -37,6 +37,15 @@ */ class RequestsPluginTest extends UnitTestCase { + /** + * The temporary folder. + * + * @var string + * + * @since __DEPLOY_VERSION__ + */ + private $tmpFolder; + /** * Setup * @@ -46,8 +55,11 @@ class RequestsPluginTest extends UnitTestCase */ public function setUp(): void { - if (is_dir(__DIR__ . '/tmp')) { - Folder::delete(__DIR__ . '/tmp'); + // Dir must be random for parallel automated tests + $this->tmpFolder = JPATH_ROOT . '/tmp/' . rand(); + + if (is_dir($this->tmpFolder)) { + Folder::delete($this->tmpFolder); } } @@ -60,8 +72,8 @@ public function setUp(): void */ public function tearDown(): void { - if (is_dir(__DIR__ . '/tmp')) { - Folder::delete(__DIR__ . '/tmp'); + if (is_dir($this->tmpFolder)) { + Folder::delete($this->tmpFolder); } } @@ -95,10 +107,13 @@ public static function isSupported() $factory = $this->createStub(HttpFactory::class); $factory->method('getHttp')->willReturn($http); + $language = $this->createStub(Language::class); + $language->method('_')->willReturn('test'); + $app = $this->createStub(CMSApplicationInterface::class); - $app->method('getLanguage')->willReturn($this->createStub(Language::class)); + $app->method('getLanguage')->willReturn($language); - $plugin = new Requests(new Dispatcher(), [], $factory, __DIR__ . '/tmp'); + $plugin = new Requests(new Dispatcher(), [], $factory, $this->tmpFolder); $plugin->setApplication($app); $task = $this->createStub(Task::class); @@ -116,7 +131,7 @@ public static function isSupported() $this->assertEquals(Status::OK, $event->getResultSnapshot()['status']); $this->assertStringContainsString('SAVED', $event->getResultSnapshot()['output']); $this->assertEquals('http://example.com', $transport->url); - $this->assertStringEqualsFile(__DIR__ . '/tmp/task_1_response.html', 'test'); + $this->assertStringEqualsFile($this->tmpFolder . '/task_1_response.html', 'test'); } /** @@ -149,10 +164,13 @@ public static function isSupported() $factory = $this->createStub(HttpFactory::class); $factory->method('getHttp')->willReturn($http); + $language = $this->createStub(Language::class); + $language->method('_')->willReturn('test'); + $app = $this->createStub(CMSApplicationInterface::class); - $app->method('getLanguage')->willReturn($this->createStub(Language::class)); + $app->method('getLanguage')->willReturn($language); - $plugin = new Requests(new Dispatcher(), [], $factory, __DIR__ . '/tmp'); + $plugin = new Requests(new Dispatcher(), [], $factory, $this->tmpFolder); $plugin->setApplication($app); $task = $this->createStub(Task::class); @@ -170,7 +188,7 @@ public static function isSupported() $this->assertEquals(Status::KNOCKOUT, $event->getResultSnapshot()['status']); $this->assertStringContainsString('SAVED', $event->getResultSnapshot()['output']); $this->assertEquals('http://example.com', $transport->url); - $this->assertStringEqualsFile(__DIR__ . '/tmp/task_1_response.html', 'test'); + $this->assertStringEqualsFile($this->tmpFolder . '/task_1_response.html', 'test'); } /** @@ -203,10 +221,13 @@ public static function isSupported() $factory = $this->createStub(HttpFactory::class); $factory->method('getHttp')->willReturn($http); + $language = $this->createStub(Language::class); + $language->method('_')->willReturn('test'); + $app = $this->createStub(CMSApplicationInterface::class); - $app->method('getLanguage')->willReturn($this->createStub(Language::class)); + $app->method('getLanguage')->willReturn($language); - $plugin = new Requests(new Dispatcher(), [], $factory, __DIR__ . '/tmp'); + $plugin = new Requests(new Dispatcher(), [], $factory, $this->tmpFolder); $plugin->setApplication($app); $task = $this->createStub(Task::class); @@ -256,7 +277,7 @@ public static function isSupported() $app = $this->createStub(CMSApplicationInterface::class); $app->method('getLanguage')->willReturn($language); - $plugin = new Requests(new Dispatcher(), [], $factory, __DIR__ . '/tmp'); + $plugin = new Requests(new Dispatcher(), [], $factory, $this->tmpFolder); $plugin->setApplication($app); $task = $this->createStub(Task::class); @@ -305,7 +326,7 @@ public static function isSupported() $app = $this->createStub(CMSApplicationInterface::class); $app->method('getLanguage')->willReturn($language); - $plugin = new Requests(new Dispatcher(), [], $factory, '/invalid'); + $plugin = new Requests(new Dispatcher(), [], $factory, '/proc/invalid'); $plugin->setApplication($app); $task = $this->createStub(Task::class); diff --git a/tests/Unit/Plugin/Task/SiteStatus/Extension/SiteStatusPluginTest.php b/tests/Unit/Plugin/Task/SiteStatus/Extension/SiteStatusPluginTest.php index b1bda3d82b6de..27bac75e9e94e 100644 --- a/tests/Unit/Plugin/Task/SiteStatus/Extension/SiteStatusPluginTest.php +++ b/tests/Unit/Plugin/Task/SiteStatus/Extension/SiteStatusPluginTest.php @@ -32,6 +32,15 @@ */ class SiteStatusPluginTest extends UnitTestCase { + /** + * The temporary folder. + * + * @var string + * + * @since __DEPLOY_VERSION__ + */ + private $tmpFolder; + /** * Setup * @@ -41,11 +50,14 @@ class SiteStatusPluginTest extends UnitTestCase */ public function setUp(): void { - if (!is_dir(__DIR__ . '/tmp')) { - mkdir(__DIR__ . '/tmp'); + // Dir must be random for parallel automated tests + $this->tmpFolder = JPATH_ROOT . '/tmp/' . rand(); + + if (!is_dir($this->tmpFolder)) { + mkdir($this->tmpFolder); } - touch(__DIR__ . '/tmp/config.php'); + touch($this->tmpFolder . '/config.php'); } /** @@ -57,8 +69,8 @@ public function setUp(): void */ public function tearDown(): void { - if (is_dir(__DIR__ . '/tmp')) { - Folder::delete(__DIR__ . '/tmp'); + if (is_dir($this->tmpFolder)) { + Folder::delete($this->tmpFolder); } } @@ -71,10 +83,13 @@ public function tearDown(): void */ public function testSetOnlineWhenOffline() { + $language = $this->createStub(Language::class); + $language->method('_')->willReturn('test'); + $app = $this->createStub(CMSApplicationInterface::class); - $app->method('getLanguage')->willReturn($this->createStub(Language::class)); + $app->method('getLanguage')->willReturn($language); - $plugin = new SiteStatus(new Dispatcher(), [], ['offline' => true], __DIR__ . '/tmp/config.php'); + $plugin = new SiteStatus(new Dispatcher(), [], ['offline' => true], $this->tmpFolder . '/config.php'); $plugin->setApplication($app); $task = $this->createStub(Task::class); @@ -84,7 +99,7 @@ public function testSetOnlineWhenOffline() $plugin->alterSiteStatus($event); $this->assertEquals(Status::OK, $event->getResultSnapshot()['status']); - $this->assertStringContainsString('$offline = false;', file_get_contents(__DIR__ . '/tmp/config.php')); + $this->assertStringContainsString('$offline = false;', file_get_contents($this->tmpFolder . '/config.php')); } /** @@ -96,10 +111,13 @@ public function testSetOnlineWhenOffline() */ public function testSetOnlineWhenOnline() { + $language = $this->createStub(Language::class); + $language->method('_')->willReturn('test'); + $app = $this->createStub(CMSApplicationInterface::class); - $app->method('getLanguage')->willReturn($this->createStub(Language::class)); + $app->method('getLanguage')->willReturn($language); - $plugin = new SiteStatus(new Dispatcher(), [], ['offline' => false], __DIR__ . '/tmp/config.php'); + $plugin = new SiteStatus(new Dispatcher(), [], ['offline' => false], $this->tmpFolder . '/config.php'); $plugin->setApplication($app); $task = $this->createStub(Task::class); @@ -109,7 +127,7 @@ public function testSetOnlineWhenOnline() $plugin->alterSiteStatus($event); $this->assertEquals(Status::OK, $event->getResultSnapshot()['status']); - $this->assertStringContainsString('$offline = false;', file_get_contents(__DIR__ . '/tmp/config.php')); + $this->assertStringContainsString('$offline = false;', file_get_contents($this->tmpFolder . '/config.php')); } /** @@ -121,10 +139,13 @@ public function testSetOnlineWhenOnline() */ public function testSetOfflineWhenOnline() { + $language = $this->createStub(Language::class); + $language->method('_')->willReturn('test'); + $app = $this->createStub(CMSApplicationInterface::class); - $app->method('getLanguage')->willReturn($this->createStub(Language::class)); + $app->method('getLanguage')->willReturn($language); - $plugin = new SiteStatus(new Dispatcher(), [], ['offline' => false], __DIR__ . '/tmp/config.php'); + $plugin = new SiteStatus(new Dispatcher(), [], ['offline' => false], $this->tmpFolder . '/config.php'); $plugin->setApplication($app); $task = $this->createStub(Task::class); @@ -134,7 +155,7 @@ public function testSetOfflineWhenOnline() $plugin->alterSiteStatus($event); $this->assertEquals(Status::OK, $event->getResultSnapshot()['status']); - $this->assertStringContainsString('$offline = true;', file_get_contents(__DIR__ . '/tmp/config.php')); + $this->assertStringContainsString('$offline = true;', file_get_contents($this->tmpFolder . '/config.php')); } /** @@ -146,10 +167,13 @@ public function testSetOfflineWhenOnline() */ public function testSetOfflineWhenOffline() { + $language = $this->createStub(Language::class); + $language->method('_')->willReturn('test'); + $app = $this->createStub(CMSApplicationInterface::class); - $app->method('getLanguage')->willReturn($this->createStub(Language::class)); + $app->method('getLanguage')->willReturn($language); - $plugin = new SiteStatus(new Dispatcher(), [], ['offline' => true], __DIR__ . '/tmp/config.php'); + $plugin = new SiteStatus(new Dispatcher(), [], ['offline' => true], $this->tmpFolder . '/config.php'); $plugin->setApplication($app); $task = $this->createStub(Task::class); @@ -159,7 +183,7 @@ public function testSetOfflineWhenOffline() $plugin->alterSiteStatus($event); $this->assertEquals(Status::OK, $event->getResultSnapshot()['status']); - $this->assertStringContainsString('$offline = true;', file_get_contents(__DIR__ . '/tmp/config.php')); + $this->assertStringContainsString('$offline = true;', file_get_contents($this->tmpFolder . '/config.php')); } /** @@ -171,10 +195,13 @@ public function testSetOfflineWhenOffline() */ public function testToggleOffline() { + $language = $this->createStub(Language::class); + $language->method('_')->willReturn('test'); + $app = $this->createStub(CMSApplicationInterface::class); - $app->method('getLanguage')->willReturn($this->createStub(Language::class)); + $app->method('getLanguage')->willReturn($language); - $plugin = new SiteStatus(new Dispatcher(), [], ['offline' => false], __DIR__ . '/tmp/config.php'); + $plugin = new SiteStatus(new Dispatcher(), [], ['offline' => false], $this->tmpFolder . '/config.php'); $plugin->setApplication($app); $task = $this->createStub(Task::class); @@ -184,7 +211,7 @@ public function testToggleOffline() $plugin->alterSiteStatus($event); $this->assertEquals(Status::OK, $event->getResultSnapshot()['status']); - $this->assertStringContainsString('$offline = true;', file_get_contents(__DIR__ . '/tmp/config.php')); + $this->assertStringContainsString('$offline = true;', file_get_contents($this->tmpFolder . '/config.php')); } /** @@ -196,10 +223,13 @@ public function testToggleOffline() */ public function testToggleOnline() { + $language = $this->createStub(Language::class); + $language->method('_')->willReturn('test'); + $app = $this->createStub(CMSApplicationInterface::class); - $app->method('getLanguage')->willReturn($this->createStub(Language::class)); + $app->method('getLanguage')->willReturn($language); - $plugin = new SiteStatus(new Dispatcher(), [], ['offline' => true], __DIR__ . '/tmp/config.php'); + $plugin = new SiteStatus(new Dispatcher(), [], ['offline' => true], $this->tmpFolder . '/config.php'); $plugin->setApplication($app); $task = $this->createStub(Task::class); @@ -209,7 +239,7 @@ public function testToggleOnline() $plugin->alterSiteStatus($event); $this->assertEquals(Status::OK, $event->getResultSnapshot()['status']); - $this->assertStringContainsString('$offline = false;', file_get_contents(__DIR__ . '/tmp/config.php')); + $this->assertStringContainsString('$offline = false;', file_get_contents($this->tmpFolder . '/config.php')); } /** @@ -227,7 +257,7 @@ public function testInvalidConfigFile() $app = $this->createStub(CMSApplicationInterface::class); $app->method('getLanguage')->willReturn($language); - $plugin = new SiteStatus(new Dispatcher(), [], ['offline' => true], '/invalid/config.php'); + $plugin = new SiteStatus(new Dispatcher(), [], ['offline' => true], '/proc/invalid/config.php'); $plugin->setApplication($app); $task = $this->createStub(Task::class); @@ -237,6 +267,6 @@ public function testInvalidConfigFile() $plugin->alterSiteStatus($event); $this->assertEquals(Status::KNOCKOUT, $event->getResultSnapshot()['status']); - $this->assertFileNotExists('/invalid/config.php'); + $this->assertFileNotExists('/proc/invalid/config.php'); } } diff --git a/tests/Unit/bootstrap.php b/tests/Unit/bootstrap.php index 5a455edc7ddfe..e34e9397ece09 100644 --- a/tests/Unit/bootstrap.php +++ b/tests/Unit/bootstrap.php @@ -37,15 +37,11 @@ } if (!defined('JPATH_PLATFORM')) { - define('JPATH_PLATFORM', JPATH_BASE . '/libraries'); + define('JPATH_PLATFORM', JPATH_BASE . DIRECTORY_SEPARATOR . 'libraries'); } if (!defined('JPATH_LIBRARIES')) { - define('JPATH_LIBRARIES', JPATH_BASE . '/libraries'); -} - -if (!defined('JPATH_CACHE')) { - define('JPATH_CACHE', JPATH_BASE . '/cache'); + define('JPATH_LIBRARIES', JPATH_BASE . DIRECTORY_SEPARATOR . 'libraries'); } if (!defined('JPATH_CONFIGURATION')) { @@ -57,27 +53,31 @@ } if (!defined('JPATH_ADMINISTRATOR')) { - define('JPATH_ADMINISTRATOR', JPATH_ROOT . '/administrator'); + define('JPATH_ADMINISTRATOR', JPATH_ROOT . DIRECTORY_SEPARATOR . 'administrator'); +} + +if (!defined('JPATH_CACHE')) { + define('JPATH_CACHE', JPATH_ADMINISTRATOR . DIRECTORY_SEPARATOR . 'cache'); } if (!defined('JPATH_API')) { - define('JPATH_API', JPATH_ROOT . '/api'); + define('JPATH_API', JPATH_ROOT . DIRECTORY_SEPARATOR . 'api'); } if (!defined('JPATH_INSTALLATION')) { - define('JPATH_INSTALLATION', JPATH_ROOT . '/installation'); + define('JPATH_INSTALLATION', JPATH_ROOT . DIRECTORY_SEPARATOR . 'installation'); } if (!defined('JPATH_MANIFESTS')) { - define('JPATH_MANIFESTS', JPATH_ADMINISTRATOR . '/manifests'); + define('JPATH_MANIFESTS', JPATH_ADMINISTRATOR . DIRECTORY_SEPARATOR . 'manifests'); } if (!defined('JPATH_PLUGINS')) { - define('JPATH_PLUGINS', JPATH_BASE . '/plugins'); + define('JPATH_PLUGINS', JPATH_BASE . DIRECTORY_SEPARATOR . 'plugins'); } if (!defined('JPATH_THEMES')) { - define('JPATH_THEMES', JPATH_BASE . '/templates'); + define('JPATH_THEMES', JPATH_BASE . DIRECTORY_SEPARATOR . 'templates'); } if (!defined('JDEBUG')) { diff --git a/tests/phpunit-appveyor.xml.dist b/tests/phpunit-appveyor.xml.dist index 6913b2dd4c6b5..bd71e8617956a 100644 --- a/tests/phpunit-appveyor.xml.dist +++ b/tests/phpunit-appveyor.xml.dist @@ -2,10 +2,10 @@ - ./Unit/Libraries + ./Unit - ./Integration/Libraries + ./Integration