NerdsAndCompany\Schematic\Services\LocalesTest::testExport PHP Method

testExport() public method

Test export functionality.
public testExport ( )
    public function testExport()
    {
        $data = $this->getLocaleData();
        $locales = [];
        foreach ($data as $id) {
            $locales[] = new LocaleModel($id);
        }
        $mockLocalizationService = $this->getMockLocalizationService($data, $locales);
        $this->setComponent(Craft::app(), 'i18n', $mockLocalizationService);
        $export = $this->schematicLocalesService->export();
        $this->assertEquals($data, $export);
    }