1
0
mirror of synced 2025-02-02 21:41:45 +03:00

#5798 adding void test method return declaration, using ::class reference over string reference

This commit is contained in:
Marco Pivetta 2017-06-21 06:34:45 +02:00
parent d13327eca2
commit 6e9c1d8a4b
No known key found for this signature in database
GPG Key ID: 4167D3337FD9D629

View File

@ -165,11 +165,11 @@ class SchemaToolTest extends OrmTestCase
$this->assertTrue(current($indexes)->isPrimary(), "index should be primary"); $this->assertTrue(current($indexes)->isPrimary(), "index should be primary");
} }
public function testSetDiscriminatorColumnWithoutLength() public function testSetDiscriminatorColumnWithoutLength() : void
{ {
$em = $this->_getTestEntityManager(); $em = $this->_getTestEntityManager();
$schemaTool = new SchemaTool($em); $schemaTool = new SchemaTool($em);
$metadata = $em->getClassMetadata(__NAMESPACE__ . '\\FirstEntity'); $metadata = $em->getClassMetadata(FirstEntity::class);
$metadata->setInheritanceType(ClassMetadata::INHERITANCE_TYPE_SINGLE_TABLE); $metadata->setInheritanceType(ClassMetadata::INHERITANCE_TYPE_SINGLE_TABLE);
$metadata->setDiscriminatorColumn(['name' => 'discriminator', 'type' => 'string']); $metadata->setDiscriminatorColumn(['name' => 'discriminator', 'type' => 'string']);