Conditions | 1 |
Paths | 1 |
Total Lines | 25 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function testIssue() |
||
22 | { |
||
23 | $this->markTestSkipped('Embeddables are ommitted for now'); |
||
24 | |||
25 | $driver = $this->createAnnotationDriver(); |
||
26 | |||
27 | $metadataBuildingContext = new ClassMetadataBuildingContext( |
||
28 | $this->createMock(ClassMetadataFactory::class), |
||
29 | $this->createMock(ReflectionService::class) |
||
30 | ); |
||
31 | |||
32 | $classMetadata = new ClassMetadata(DDC3103ArticleId::class, $metadataBuildingContext); |
||
33 | |||
34 | $driver->loadMetadataForClass(DDC3103ArticleId::class, $classMetadata, $metadataBuildingContext); |
||
35 | |||
36 | self::assertTrue( |
||
37 | $classMetadata->isEmbeddedClass, |
||
38 | 'The isEmbeddedClass property should be true from the mapping data.' |
||
39 | ); |
||
40 | |||
41 | self::assertTrue( |
||
42 | unserialize(serialize($classMetadata))->isEmbeddedClass, |
||
43 | 'The isEmbeddedClass property should still be true after serialization and unserialization.' |
||
44 | ); |
||
45 | } |
||
46 | } |
||
59 |