Skip to content

Commit 26be4cf

Browse files
committed
Rename AbstractAnnotationDriverTestCas to AttributeDriverTest
1 parent 009cded commit 26be4cf

File tree

5 files changed

+284
-303
lines changed

5 files changed

+284
-303
lines changed

tests/Tests/Functional/EmbeddedTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ public function testReusedEmbeddedDocumentsAreClonedInFact(): void
607607

608608
public function testEmbeddedDocumentWithDifferentFieldNameAnnotation(): void
609609
{
610-
$test1 = new ChangeEmbeddedWithNameAnnotationTest();
610+
$test1 = new ChangeEmbeddedWithNameAttributeTest();
611611

612612
$embedded = new EmbeddedDocumentWithId();
613613
$embedded->id = (string) new ObjectId();
@@ -624,7 +624,7 @@ public function testEmbeddedDocumentWithDifferentFieldNameAnnotation(): void
624624

625625
$this->dm->flush();
626626

627-
$test1Data = $this->dm->createQueryBuilder(ChangeEmbeddedWithNameAnnotationTest::class)
627+
$test1Data = $this->dm->createQueryBuilder(ChangeEmbeddedWithNameAttributeTest::class)
628628
->hydrate(false)
629629
->field('id')
630630
->equals($test1->id)
@@ -667,7 +667,7 @@ class EmbeddedDocumentWithId
667667
}
668668

669669
#[ODM\Document]
670-
class ChangeEmbeddedWithNameAnnotationTest
670+
class ChangeEmbeddedWithNameAttributeTest
671671
{
672672
/** @var string|null */
673673
#[ODM\Id]

tests/Tests/Functional/IndexesTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ public function testDiscriminatorIndexes(): void
8181
self::assertEquals(1, $indexes[0]['keys']['type']);
8282
}
8383

84-
public function testMultipleIndexAnnotations(): void
84+
public function testMultipleIndexAttributes(): void
8585
{
86-
$class = $this->dm->getClassMetadata(DocumentWithMultipleIndexAnnotations::class);
86+
$class = $this->dm->getClassMetadata(DocumentWithMultipleIndexAttributes::class);
8787
$sm = $this->dm->getSchemaManager();
8888
$indexes = $sm->getDocumentIndexes($class->name);
8989

@@ -460,7 +460,7 @@ class DocumentWithDiscriminatorIndex
460460
#[ODM\Index(keys: ['name' => 'asc'])]
461461
#[ODM\Index(keys: ['name' => 'desc'])]
462462
#[ODM\UniqueIndex(keys: ['name' => 'asc'], options: ['sparse' => true])]
463-
class DocumentWithMultipleIndexAnnotations
463+
class DocumentWithMultipleIndexAttributes
464464
{
465465
/** @var string|null */
466466
#[ODM\Id]

tests/Tests/Mapping/AbstractAnnotationDriverTestCase.php

Lines changed: 0 additions & 290 deletions
This file was deleted.

0 commit comments

Comments
 (0)