Skip to content

Commit d13c954

Browse files
authored
Reorganizing component tests (#37901)
1 parent 9383749 commit d13c954

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

tests/Unit/Components/Actionlogs/ActionlogConfigModelTest.php renamed to tests/Unit/Component/Actionlogs/Administrator/Model/ActionlogConfigModelTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @license GNU General Public License version 2 or later; see LICENSE.txt
88
*/
99

10-
namespace Joomla\Tests\Unit\Components\Actionlogs;
10+
namespace Joomla\Tests\Unit\Component\Actionlogs\Administrator\Model;
1111

1212
use Joomla\CMS\MVC\Factory\MVCFactoryInterface;
1313
use Joomla\Component\Actionlogs\Administrator\Model\ActionlogConfigModel;
Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @copyright (C) 2021 Open Source Matters, Inc. <https://www.joomla.org>
77
* @license GNU General Public License version 2 or later; see LICENSE.txt
88
*/
9-
namespace Joomla\Tests\Unit\Administrator\Components\Finder\Indexer;
9+
namespace Joomla\Tests\Unit\Component\Finder\Administrator\Indexer;
1010

1111
use Joomla\Component\Finder\Administrator\Indexer\Result;
1212
use Joomla\Tests\Unit\UnitTestCase;
@@ -19,24 +19,6 @@
1919
*/
2020
class ResultTest extends UnitTestCase
2121
{
22-
/**
23-
* Include non-autoloaded files as Namespace in the files that don't implement PSR-4
24-
*
25-
* @return void
26-
*
27-
* @since 4.1.3
28-
*/
29-
protected function setUp(): void
30-
{
31-
// Can be removed once we have autoloading working in Unit Tests
32-
// @see https://github.com/joomla/joomla-cms/pull/36486
33-
if (!class_exists(Result::class))
34-
{
35-
require_once JPATH_ADMINISTRATOR . '/components/com_finder/src/Indexer/Indexer.php';
36-
require_once JPATH_ADMINISTRATOR . '/components/com_finder/src/Indexer/Result.php';
37-
}
38-
}
39-
4022
/**
4123
* @return void
4224
*

0 commit comments

Comments
 (0)