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:
parent
54f14eaa6c
commit
606f66b5df
4
.github/workflows/mutation-tests.yml
vendored
4
.github/workflows/mutation-tests.yml
vendored
@ -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 * * *'
|
||||
|
||||
@ -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
@ -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>
|
||||
|
||||
9594
psalm-baseline.xml
9594
psalm-baseline.xml
File diff suppressed because it is too large
Load Diff
@ -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"/>
|
||||
|
||||
@ -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
Loading…
Reference in New Issue
Block a user