N°5608 - Rename "test" folder to "tests" to better match conventions

This commit is contained in:
Molkobain
2022-10-14 15:38:56 +02:00
parent 11d8547cef
commit 87cb73c038
108 changed files with 16 additions and 16 deletions

4
.gitignore vendored
View File

@@ -8,7 +8,7 @@
# composer reserver directory, from sources, populate/update using "composer install"
vendor/*
test/*/vendor/*
tests/*/vendor/*
# all conf but listing prevention
/conf/**
@@ -33,7 +33,7 @@ test/*/vendor/*
!/log/web.config
# PHPUnit cache file
/test/php-unit-tests/.phpunit.result.cache
/tests/php-unit-tests/.phpunit.result.cache
# Jetbrains

View File

@@ -1,8 +0,0 @@
[itop]
itop_setup=test/setup_params/default-params.xml
itop_backup=test/backups/backup-itop.tar.gz
[phpunit]
; when empty phpunit_xml => no phpunit test performed
; phpunit xml file description. required for phpunit testing
phpunit_xml=test/php-unit-tests/phpunit.xml.dist

8
tests/ci_description.ini Normal file
View File

@@ -0,0 +1,8 @@
[itop]
itop_setup=tests/setup_params/default-params.xml
itop_backup=tests/backups/backup-itop.tar.gz
[phpunit]
; when empty phpunit_xml => no phpunit test performed
; phpunit xml file description. required for phpunit testing
phpunit_xml=tests/php-unit-tests/phpunit.xml.dist

View File

@@ -41,7 +41,7 @@ else
}
$bError = false;
$oP = new iTopWebPage('Database inconsistencies');
$oP->set_base(utils::GetAbsoluteUrlAppRoot().'test/');
$oP->set_base(utils::GetAbsoluteUrlAppRoot().'tests/');
$oP->set_title('Grouping with functions');
$oP->add('<div style="padding: 15px;"><h2>Grouping with functions</h2>');
$oP->add('<div style="padding: 15px; background: #ddd;">');

View File

@@ -28,7 +28,7 @@ require_once(APPROOT.'application/startup.inc.php');
\LoginWebPage::DoLogin(true);
$sOQLFile = APPROOT.'log/oql_records.txt';
$sTestFile = APPROOT.'test/core/oql_records.php';
$sTestFile = APPROOT.'tests/core/oql_records.php';
$oTestHandle = @fopen($sTestFile, "w");
@@ -77,7 +77,7 @@ echo "File '$sTestFile' generated with $iCount entries (from $iRead captured OQL
$sOQLFile = APPROOT.'log/oql_group_by_records.txt';
$sTestFile = APPROOT.'test/core/oql_group_by_records.php';
$sTestFile = APPROOT.'tests/core/oql_group_by_records.php';
$oTestHandle = @fopen($sTestFile, "w");

View File

@@ -11,7 +11,7 @@ class WeeklyScheduledProcessTest extends ItopTestCase
{
parent::setUp();
require_once(APPROOT.'core/backgroundprocess.inc.php');
require_once(APPROOT.'test/core/WeeklyScheduledProcessMockConfig.php');
require_once(APPROOT.'tests/core/WeeklyScheduledProcessMockConfig.php');
}

View File

@@ -222,7 +222,7 @@ class HTMLDOMSanitizerTest extends AbstractDOMSanitizerTest
*/
public function testDoSanitizeCallInlineImageProcessImageTag($sHtml, $iExpectedCount)
{
require_once APPROOT.'test/core/sanitizer/InlineImageMock.php';
require_once APPROOT.'tests/core/sanitizer/InlineImageMock.php';
InlineImageMock::ResetCallCounter();
$oSanitizer = new HTMLDOMSanitizer(InlineImageMock::class);

View File

Before

Width:  |  Height:  |  Size: 418 B

After

Width:  |  Height:  |  Size: 418 B

View File

@@ -25,7 +25,7 @@ class UserLocalTest extends ItopDataTestCase
{
parent::setUp();
require_once(APPROOT.'test/php-unit-tests/tests/datamodels/2.x/authent-local/UserLocalTest/UserLocalPasswordPolicyMock.php');
require_once(APPROOT.'tests/php-unit-tests/tests/datamodels/2.x/authent-local/UserLocalTest/UserLocalPasswordPolicyMock.php');
require_once(APPROOT.'env-production/authent-local/model.authent-local.php');
}

Some files were not shown because too many files have changed in this diff Show More