N°5608 - Move/rename unit tests to match their counterpart location/name

This commit is contained in:
Molkobain
2022-10-13 22:12:14 +02:00
parent 0998c73a1a
commit 11d8547cef
6 changed files with 11 additions and 7 deletions

View File

@@ -50,6 +50,13 @@
<testsuite name="Setup">
<directory>unitary-tests/setup</directory>
</testsuite>
<!-- Note: The unitary-tests/sources/application/TwigBase is omitted for now as the test is not working -->
<testsuite name="SourcesApplicationSearch">
<directory>unitary-tests/sources/application/search</directory>
</testsuite>
<testsuite name="SourcesComposer">
<directory>unitary-tests/sources/Composer</directory>
</testsuite>
<testsuite name="Status">
<directory>unitary-tests/status</directory>
</testsuite>

View File

@@ -24,7 +24,7 @@ use Combodo\iTop\Test\UnitTest\ItopTestCase;
/**
* @covers utils
*/
class UtilsTest extends ItopTestCase
class utilsTest extends ItopTestCase
{
public function testEndsWith()
{

View File

@@ -22,8 +22,6 @@ use Combodo\iTop\Test\UnitTest\ItopTestCase;
* along with iTop. If not, see <http: *www.gnu.org/licenses/>
*
*/
class iTopComposerTest extends ItopTestCase
{
@@ -84,8 +82,7 @@ class iTopComposerTest extends ItopTestCase
$this->assertTrue(is_array($aDirs));
$aDeniedDirWrongFormat = [];
foreach ($aDirs as $sDir)
{
foreach ($aDirs as $sDir) {
if (false === iTopComposer::IsTestDir($sDir)) {
$aDeniedDirWrongFormat[] = $sDir;
}
@@ -138,8 +135,8 @@ class iTopComposerTest extends ItopTestCase
$this->assertEmpty(
$aMissing,
'Test dirs exists in /lib !'."\n"
.' They must be declared either in the allowed or denied list in '.iTopComposer::class." (see N°2651).\n"
.' List of dirs:'."\n".var_export($aMissing, true)
.' They must be declared either in the allowed or denied list in '.iTopComposer::class." (see N°2651).\n"
.' List of dirs:'."\n".var_export($aMissing, true)
);
}
}