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"> <testsuite name="Setup">
<directory>unitary-tests/setup</directory> <directory>unitary-tests/setup</directory>
</testsuite> </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"> <testsuite name="Status">
<directory>unitary-tests/status</directory> <directory>unitary-tests/status</directory>
</testsuite> </testsuite>

View File

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