Bravo3\Orm\Tests\Mappers\Porter\MapPorterTestEx::testPort PHP Method

testPort() public method

public testPort ( )
    public function testPort()
    {
        $em = $this->entityManagerDataProvider()[0][0];
        $locator = new EntityLocator($this->entityManagerDataProvider()[0][0]);
        $entities = $locator->locateEntities(__DIR__ . '/../../Entities', 'Bravo3\\Orm\\Tests\\Entities');
        foreach ($this->getWriters() as $porter) {
            $porter->setInputManager($em);
            // Should NOT be in output
            $porter->compileMetadataForEntity(Category::class);
            $porter->purge();
            // Should be in output
            foreach ($entities as $class_name) {
                $porter->compileMetadataForEntity($class_name);
            }
            $porter->flush();
        }
    }
MapPorterTestEx