Commit ca85441d authored by Dries's avatar Dries
Browse files

Issue #2260121 by sun: PHPUnit Tests namespace of modules is ambiguous with...

Issue #2260121 by sun: PHPUnit Tests namespace of modules is ambiguous with regular runtime namespace (+ Simpletest tests).
parent ebace9e8
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\action\Tests\Menu\ActionLocalTasksTest.
* Contains \Drupal\Tests\action\Unit\Menu\ActionLocalTasksTest.
*/
namespace Drupal\action\Tests\Menu;
namespace Drupal\Tests\action\Unit\Menu;
use Drupal\Tests\Core\Menu\LocalTaskIntegrationTest;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\aggregator\Tests\Menu\AggregatorLocalTasksTest.
* Contains \Drupal\Tests\aggregator\Unit\Menu\AggregatorLocalTasksTest.
*/
namespace Drupal\aggregator\Tests\Menu;
namespace Drupal\Tests\aggregator\Unit\Menu;
use Drupal\Tests\Core\Menu\LocalTaskIntegrationTest;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\aggregator\Tests\Plugin\AggregatorPluginSettingsBaseTest
* Contains \Drupal\Tests\aggregator\Unit\Plugin\AggregatorPluginSettingsBaseTest
*/
namespace Drupal\aggregator\Tests\Plugin {
namespace Drupal\Tests\aggregator\Unit\Plugin {
use Drupal\aggregator\Form\SettingsForm;
use Drupal\Core\Form\FormState;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\block\Tests\BlockConfigEntityUnitTest.
* Contains \Drupal\Tests\block\Unit\BlockConfigEntityUnitTest.
*/
namespace Drupal\block\Tests;
namespace Drupal\Tests\block\Unit;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Tests\Core\Plugin\Fixtures\TestConfigurablePlugin;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\block\Tests\BlockFormTest.
* Contains \Drupal\Tests\block\Unit\BlockFormTest.
*/
namespace Drupal\block\Tests;
namespace Drupal\Tests\block\Unit;
use Drupal\block\BlockForm;
use Drupal\Tests\UnitTestCase;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\block\Tests\CategoryAutocompleteTest.
* Contains \Drupal\Tests\block\Unit\CategoryAutocompleteTest.
*/
namespace Drupal\block\Tests;
namespace Drupal\Tests\block\Unit;
use Drupal\block\Controller\CategoryAutocompleteController;
use Drupal\Component\Utility\String;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\block\Tests\Menu\BlockLocalTasksTest.
* Contains \Drupal\Tests\block\Unit\Menu\BlockLocalTasksTest.
*/
namespace Drupal\block\Tests\Menu;
namespace Drupal\Tests\block\Unit\Menu;
use Drupal\Tests\Core\Menu\LocalTaskIntegrationTest;
use Symfony\Component\DependencyInjection\ContainerBuilder;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\block\Tests\Plugin\DisplayVariant\FullPageVariantTest.
* Contains \Drupal\Tests\block\Unit\Plugin\DisplayVariant\FullPageVariantTest.
*/
namespace Drupal\block\Tests\Plugin\DisplayVariant;
namespace Drupal\Tests\block\Unit\Plugin\DisplayVariant;
use Drupal\Tests\UnitTestCase;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\block_content\Tests\Menu\BlockContentLocalTasksTest.
* Contains \Drupal\Tests\block_content\Unit\Menu\BlockContentLocalTasksTest.
*/
namespace Drupal\block_content\Tests\Menu;
namespace Drupal\Tests\block_content\Unit\Menu;
use Drupal\Tests\Core\Menu\LocalTaskIntegrationTest;
use Symfony\Component\DependencyInjection\ContainerBuilder;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\book\Tests\BookManagerTest.
* Contains \Drupal\Tests\book\Unit\BookManagerTest.
*/
namespace Drupal\book\Tests;
namespace Drupal\Tests\book\Unit;
use Drupal\book\BookManager;
use Drupal\Tests\UnitTestCase;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\book\Tests\Menu\BookLocalTasksTest.
* Contains \Drupal\Tests\book\Unit\Menu\BookLocalTasksTest.
*/
namespace Drupal\book\Tests\Menu;
namespace Drupal\Tests\book\Unit\Menu;
use Drupal\Tests\Core\Menu\LocalTaskIntegrationTest;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\breakpoint\Tests\BreakpointTest.
* Contains \Drupal\Tests\breakpoint\Unit\BreakpointTest.
*/
namespace Drupal\breakpoint\Tests;
namespace Drupal\Tests\breakpoint\Unit;
use Drupal\breakpoint\Breakpoint;
use Drupal\Tests\UnitTestCase;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\comment\Tests\CommentLinkBuilderTest.
* Contains \Drupal\Tests\comment\Unit\CommentLinkBuilderTest.
*/
namespace Drupal\comment\Tests;
namespace Drupal\Tests\comment\Unit;
use Drupal\comment\CommentLinkBuilder;
use Drupal\comment\Plugin\Field\FieldType\CommentItemInterface;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\comment\Tests\CommentManagerTest.
* Contains \Drupal\Tests\comment\Unit\CommentManagerTest.
*/
namespace Drupal\comment\Tests;
namespace Drupal\Tests\comment\Unit;
use Drupal\comment\CommentManager;
use Drupal\Tests\UnitTestCase;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\comment\Tests\CommentStatisticsTest.
* Contains \Drupal\Tests\comment\Unit\CommentStatisticsTest.
*/
namespace Drupal\comment\Tests;
namespace Drupal\Tests\comment\Unit;
use Drupal\comment\CommentStatistics;
use Drupal\Tests\UnitTestCase;
......
<?php
/**
* @file
* Contains \Drupal\comment\Tests\Entity\CommentTest
* Contains \Drupal\Tests\comment\Unit\Entity\CommentTest
*/
namespace Drupal\comment\Tests\Entity;
namespace Drupal\Tests\comment\Unit\Entity;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\Entity\EntityType;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\config\Tests\Menu\ConfigLocalTasksTest.
* Contains \Drupal\Tests\config\Unit\Menu\ConfigLocalTasksTest.
*/
namespace Drupal\config\Tests\Menu;
namespace Drupal\Tests\config\Unit\Menu;
use Drupal\Tests\Core\Menu\LocalTaskIntegrationTest;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\config_translation\Tests\ConfigEntityMapperTest.
* Contains \Drupal\Tests\config_translation\Unit\ConfigEntityMapperTest.
*/
namespace Drupal\config_translation\Tests;
namespace Drupal\Tests\config_translation\Unit;
use Drupal\config_translation\ConfigEntityMapper;
use Drupal\Tests\UnitTestCase;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\config_translation\Tests\ConfigMapperManagerTest.
* Contains \Drupal\Tests\config_translation\Unit\ConfigMapperManagerTest.
*/
namespace Drupal\config_translation\Tests;
namespace Drupal\Tests\config_translation\Unit;
use Drupal\config_translation\ConfigMapperManager;
use Drupal\Core\Language\Language;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\config_translation\Tests\ConfigNamesMapperTest.
* Contains \Drupal\Tests\config_translation\Unit\ConfigNamesMapperTest.
*/
namespace Drupal\config_translation\Tests;
namespace Drupal\Tests\config_translation\Unit;
use Drupal\config_translation\ConfigNamesMapper;
use Drupal\Core\Config\ConfigFactoryInterface;
......@@ -33,7 +33,7 @@ class ConfigNamesMapperTest extends UnitTestCase {
*
* @see \Drupal\config_translation\ConfigNamesMapper
*
* @var \Drupal\config_translation\Tests\TestConfigNamesMapper
* @var \Drupal\Tests\config_translation\Unit\TestConfigNamesMapper
*/
protected $configNamesMapper;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment