DDC-2704 - covering code handling class metadata skipping of static properties
This commit is contained in:
parent
3df9b4d122
commit
30dcece125
@ -46,6 +46,13 @@ abstract class AbstractContentItem
|
||||
*/
|
||||
private $nodeIsLoaded = false;
|
||||
|
||||
/**
|
||||
* This field is transient on purpose
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
public static $fileSystem;
|
||||
|
||||
public function __construct(Directory $parentDir = null)
|
||||
{
|
||||
$this->parentDirectory = $parentDir;
|
||||
|
@ -1188,6 +1188,12 @@ class ClassMetadataTest extends \Doctrine\Tests\OrmTestCase
|
||||
],
|
||||
$propertyNames
|
||||
);
|
||||
|
||||
$this->assertNotContains(
|
||||
'Doctrine\Tests\Models\DirectoryTree\AbstractContentItem::fileSystem',
|
||||
$propertyNames,
|
||||
'Abstract properties should not be part of class metadata information'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user