Commit 8a2b1582 authored by catch's avatar catch

Issue #3089530 by alexpott: Tests of copied Doctrine code are not testing what we want them to test

(cherry picked from commit 7110eabe)
parent d947f1c4
......@@ -9,6 +9,7 @@
/**
* @coversDefaultClass \Drupal\Component\Annotation\Plugin\Discovery\AnnotatedClassDiscovery
* @group Annotation
* @runTestsInSeparateProcesses
*/
class AnnotatedClassDiscoveryCachedTest extends TestCase {
......
......@@ -10,6 +10,7 @@
/**
* @coversDefaultClass \Drupal\Component\Annotation\Plugin\Discovery\AnnotatedClassDiscovery
* @group Annotation
* @runTestsInSeparateProcesses
*/
class AnnotatedClassDiscoveryTest extends TestCase {
......
......@@ -3,7 +3,7 @@
namespace Drupal\Tests\Component\Annotation\Doctrine;
use Doctrine\Common\Annotations\DocParser;
use Drupal\Component\Annotation\Doctrine\DocParser;
use Doctrine\Common\Annotations\AnnotationRegistry;
use Doctrine\Common\Annotations\Annotation\Target;
use Drupal\Tests\Component\Annotation\Doctrine\Fixtures\AnnotationWithConstants;
......
......@@ -3,9 +3,8 @@
namespace Drupal\Tests\Component\Annotation\Doctrine\Ticket;
use Doctrine\Common\Annotations\AnnotationReader;
use Doctrine\Common\Annotations\DocParser;
use Doctrine\Common\Annotations\SimpleAnnotationReader;
use Drupal\Component\Annotation\Doctrine\DocParser;
use Drupal\Component\Annotation\Doctrine\SimpleAnnotationReader;
use PHPUnit\Framework\TestCase;
/**
......@@ -28,18 +27,6 @@ public function setUp()
include __DIR__ .'/DCOM58Entity.php';
}
public function testIssue()
{
$reader = new AnnotationReader();
$result = $reader->getClassAnnotations(new \ReflectionClass(__NAMESPACE__."\MappedClass"));
foreach ($result as $annot) {
$classAnnotations[get_class($annot)] = $annot;
}
$this->assertTrue(!isset($classAnnotations['']), 'Class "xxx" is not a valid entity or mapped super class.');
}
public function testIssueGlobalNamespace()
{
$docblock = "@Entity";
......
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