mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 19:18:44 +02:00
N°5608 - Move/rename unit tests to match their counterpart location/name
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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()
|
||||||
{
|
{
|
||||||
@@ -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)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user