INTEGRATION_IDENTIFIER example

$this->expectException(\InvalidArgumentException::class);
        $command->run(new ArrayInput([])new BufferedOutput());
    }

    public function testCommandMigrateAllOption(): void
    {
        static::assertSame(0, $this->getMigrationCount());

        $command = $this->getCommand();

        $command->run(new ArrayInput(['-all' => true, 'identifier' => self::INTEGRATION_IDENTIFIER()])new BufferedOutput());

        static::assertSame(2, $this->getMigrationCount());
    }

    public function testCommandMigrateMultipleIdentifiers(): void
    {
        static::assertSame(0, $this->getMigrationCount(true));

        $command = $this->getCommand();

        $command->run(new ArrayInput(['identifier' => [self::INTEGRATION_IDENTIFIER(), '_test_migrations_valid_run_time'], '--all' => true])new BufferedOutput());
        


        $loader->addSource(
            new MigrationSource(
                '_test_trigger_with_trigger_',
                [__DIR__ . '/_test_trigger_with_trigger_' => 'Shopware\Core\Framework\Test\Migration\_test_trigger_with_trigger_']
            )
        );

        $this->getContainer()->get(MigrationCollectionLoader::class)->addSource(
            new MigrationSource(
                self::INTEGRATION_IDENTIFIER(),
                [__DIR__ . '/_test_migrations_valid' => 'Shopware\Core\Framework\Test\Migration\_test_migrations_valid']
            )
        );

        $this->getContainer()->get(MigrationCollectionLoader::class)->addSource(
            new MigrationSource(
                self::INTEGRATION_WITH_EXCEPTION_IDENTIFIER(),
                [
                    __DIR__ . '/_test_migrations_valid' => 'Shopware\Core\Framework\Test\Migration\_test_migrations_valid',
                    __DIR__ . '/_test_migrations_valid_run_time_exceptions' => 'Shopware\Core\Framework\Test\Migration\_test_migrations_valid_run_time_exceptions',
                ]
            )
Home | Imprint | This part of the site doesn't use cookies.