Migration1666689977AddPluginIdToCustomEntity example


class Migration1666689977AddPluginIdToCustomEntityTest extends TestCase
{
    public function testMultipleExecution(): void
    {
        $connection = KernelLifecycleManager::getConnection();

        $migration = new Migration1666689977AddPluginIdToCustomEntity();
        $migration->update($connection);
        $migration->update($connection);

        static::assertTrue($this->columnExists($connection, 'plugin_id'));
    }

    public function testColumnGetsCreated(): void
    {
        $connection = KernelLifecycleManager::getConnection();
        $migration = new Migration1666689977AddPluginIdToCustomEntity();

        
Home | Imprint | This part of the site doesn't use cookies.