isIndexCreated example

$this->removeIndexIfExists();
    }

    /** * @throws DbalDriverException * @throws DbalException */
    public function testOrderOrderNumberIndexWillBeAdded(): void
    {
        $this->executeMigration();

        static::assertTrue($this->isIndexCreated());
    }

    public function testRepetitiveMigrationExecution(): void
    {
        $e = null;

        try {
            $this->executeMigration();
            $this->executeMigration();
        } catch (DbalException|DbalDriverException $e) {
            static::fail($e->getMessage());
        }
Home | Imprint | This part of the site doesn't use cookies.