NerdsAndCompany\Schematic\Services\LocalesTest::testImportWithInstalledLocales PHP Метод

testImportWithInstalledLocales() публичный Метод

Test default import functionality.
    public function testImportWithInstalledLocales()
    {
        $data = $this->getLocaleData();
        $mockLocalizationService = $this->getMockLocalizationService($data);
        $this->setComponent(Craft::app(), 'i18n', $mockLocalizationService);
        $import = $this->schematicLocalesService->import($data);
        $this->assertTrue($import instanceof Result);
        $this->assertFalse($import->hasErrors());
    }