Commit 7c1a5a2f authored by catch's avatar catch
Browse files

Issue #3449879 by mondrake: Prepare Drupal/Test/Component tests for conversion to attributes

(cherry picked from commit f4e846bd)
parent af6dcc48
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
use PHPUnit\Framework\TestCase;

/**
 * @coversDefaultClass \Drupal\Component\Annotation\PluginId
 * @coversDefaultClass \Drupal\Component\Annotation\PluginID
 * @group Annotation
 */
class PluginIdTest extends TestCase {
+669 −672
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Drupal\Tests\Component\DependencyInjection\Dumper {
namespace Drupal\Tests\Component\DependencyInjection\Dumper;

use Drupal\Component\Utility\Crypt;
use Drupal\TestTools\Extension\DeprecationBridge\ExpectDeprecationTrait;
@@ -11,14 +11,14 @@
use Prophecy\Prophet;
use Symfony\Component\DependencyInjection\Argument\IteratorArgument;
use Symfony\Component\DependencyInjection\Argument\ServiceClosureArgument;
  use Symfony\Component\DependencyInjection\Definition;
  use Symfony\Component\DependencyInjection\Reference;
  use Symfony\Component\DependencyInjection\Parameter;
  use Symfony\Component\ExpressionLanguage\Expression;
  use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;
use Symfony\Component\DependencyInjection\Parameter;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\ExpressionLanguage\Expression;

/**
 * @coversDefaultClass \Drupal\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumper
@@ -727,15 +727,13 @@ protected function getRaw($value) {

}

}

/**
 * Defines a dummy ExpressionLanguage component.
 *
 * As Drupal Core does not ship with ExpressionLanguage component we need to
 * define a dummy, else it cannot be tested.
 */
namespace Symfony\Component\ExpressionLanguage {
namespace Symfony\Component\ExpressionLanguage;

if (!class_exists('\Symfony\Component\ExpressionLanguage\Expression')) {
  /**
@@ -755,4 +753,3 @@ public function __toString() {

  }
}
}
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
use PHPUnit\Framework\TestCase;

/**
 * @coversDefaultClass \Drupal\Component\Plugin\Attribute\PluginId
 * @coversDefaultClass \Drupal\Component\Plugin\Attribute\PluginID
 * @group Attribute
 */
class PluginIdTest extends TestCase {
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
use PHPUnit\Framework\TestCase;

/**
 * @coversDefaultClass \Drupal\Component\Annotation\Plugin
 * @coversDefaultClass \Drupal\Component\Plugin\Attribute\Plugin
 * @group Attribute
 */
class PluginTest extends TestCase {