setDB example



        $this->languageDE = $this->connection->fetchOne('SELECT language.id FROM language INNER JOIN locale ON language.translation_code_id = locale.id AND locale.code = \'de-DE\'');

        $this->countryIdSlovakia = $this->connection->fetchOne('SELECT id from country WHERE iso3 = \'SVK\'');
    }

    protected function tearDown(): void
    {
        parent::tearDown();
        $this->setDB($this->resetData);
    }

    /** * @dataProvider migrationCases * * @param array<string, bool|string> $data */
    public function testMigration(array $data): void
    {
        $this->setDB($data);

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