Rename tests/classes to tests/unit

This directory is for unit tests only, so let's rename it to unit to be
more clear.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2024-02-22 14:47:22 -03:00
parent 54f14eaa6c
commit 606f66b5df
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8
393 changed files with 6476 additions and 6476 deletions

View File

@ -8,13 +8,13 @@ on:
- master
paths:
- 'src/**.php'
- 'tests/classes/**.php'
- 'tests/unit/**.php'
pull_request:
branches:
- master
paths:
- 'src/**.php'
- 'tests/classes/**.php'
- 'tests/unit/**.php'
workflow_dispatch:
schedule:
- cron: '0 0 * * *'

View File

@ -36,7 +36,7 @@
},
"autoload-dev": {
"psr-4": {
"PhpMyAdmin\\Tests\\": "tests/classes",
"PhpMyAdmin\\Tests\\": "tests/unit",
"PhpMyAdmin\\Tests\\Selenium\\": "tests/selenium/"
}
},

File diff suppressed because it is too large Load Diff

View File

@ -33,7 +33,7 @@
</php>
<testsuites>
<testsuite name="unit">
<directory suffix="Test.php">tests/classes</directory>
<directory suffix="Test.php">tests/unit</directory>
</testsuite>
<testsuite name="selenium">
<directory suffix="Test.php">tests/selenium</directory>

File diff suppressed because it is too large Load Diff

View File

@ -17,8 +17,8 @@
<directory name="app"/>
<directory name="public/setup"/>
<directory name="src"/>
<directory name="tests/classes"/>
<directory name="tests/selenium"/>
<directory name="tests/unit"/>
<file name="public/index.php"/>
<ignoreFiles>
<directory name="app/cache"/>

View File

@ -41,7 +41,7 @@ class TwigLintCommandTest extends AbstractTestCase
public function testGetTemplateContents(): void
{
$contents = $this->callFunction($this->command, TwigLintCommand::class, 'getTemplateContents', [
TEST_PATH . 'tests/classes/_data/file_listing/subfolder/one.ini',
TEST_PATH . 'tests/unit/_data/file_listing/subfolder/one.ini',
]);
self::assertSame('key=value' . "\n", $contents);
@ -49,7 +49,7 @@ class TwigLintCommandTest extends AbstractTestCase
public function testFindFiles(): void
{
$path = TEST_PATH . 'tests/classes/_data/file_listing';
$path = TEST_PATH . 'tests/unit/_data/file_listing';
$filesFound = $this->callFunction($this->command, TwigLintCommand::class, 'findFiles', [$path]);
// Sort results to avoid file system test specific failures
@ -65,7 +65,7 @@ class TwigLintCommandTest extends AbstractTestCase
public function testGetFilesInfo(): void
{
$path = TEST_PATH . 'tests/classes/_data/file_listing';
$path = TEST_PATH . 'tests/unit/_data/file_listing';
$filesInfos = $this->callFunction($this->command, TwigLintCommand::class, 'getFilesInfo', [$path]);
// Sort results to avoid file system test specific failures
@ -105,7 +105,7 @@ class TwigLintCommandTest extends AbstractTestCase
]);
$filesFound = $this->callFunction($command, TwigLintCommand::class, 'getFilesInfo', [
TEST_PATH . 'tests/classes/_data/file_listing',
TEST_PATH . 'tests/unit/_data/file_listing',
]);
self::assertEquals([

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