Skip to content

Commit f97eeac

Browse files
authored
Move stray test into functional and reclassify several classes into Unit. (#3804)
1 parent 1d89e1a commit f97eeac

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed
File renamed without changes.

tests/functional/ArgsRemapperTest.php renamed to tests/unit/ArgsRemapperTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
namespace Unish;
44

55
use \Drush\Preflight\ArgsRemapper;
6+
use PHPUnit\Framework\TestCase;
67

78
/**
89
* Tests the Arguments Remapper.
910
*
1011
* @group base
1112
*/
12-
class ArgsRemapperTest extends CommandUnishTestCase
13+
class ArgsRemapperTest extends TestCase
1314
{
1415

1516
/**
@@ -29,7 +30,7 @@ public function testCommandAliases($argv, $expected)
2930
}
3031

3132
/**
32-
* Provides argumens for ::ArgsRemapper
33+
* Provides arguments for ::ArgsRemapper
3334
*/
3435
public function argsProvider()
3536
{

tests/functional/ExpandWildcardTablesUnitTest.php renamed to tests/unit/ExpandWildcardTablesTest.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,13 @@
1111
* @group base
1212
* @group sql
1313
*/
14-
class WildcardUnitCase extends TestCase
14+
class ExpandWildcardTablesTest extends TestCase
1515
{
1616

1717
use SqlTableSelectionTrait;
1818

1919
/**
20-
* Tests drush_sql_expand_wildcard_tables().
21-
*
22-
* @see drush_sql_expand_wildcard_tables().
20+
* Tests \Drush\Sql\SqlTableSelectionTrait
2321
*/
2422
public function testExpandWildcardTables()
2523
{
@@ -49,9 +47,7 @@ public function testExpandWildcardTables()
4947
}
5048

5149
/**
52-
* Tests drush_sql_filter_tables().
53-
*
54-
* @see drush_sql_filter_tables().
50+
* Tests \Drush\Sql\SqlTableSelectionTrait
5551
*/
5652
public function testFilterTables()
5753
{

tests/functional/XhUnitTest.php renamed to tests/unit/XhProfTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
namespace Unish;
44

55
use Drush\Commands\core\XhprofCommands;
6+
use PHPUnit\Framework\TestCase;
67

78
/**
89
* Unit tests for xhCommands
910
*
1011
* @group base
1112
*/
12-
class XhUnitCase extends UnishTestCase
13+
class XhProfTest extends TestCase
1314
{
1415

1516
/**

0 commit comments

Comments
 (0)