NerdsAndCompany\Schematic\Services\ElementIndexSettingsTest::testImport PHP Method

testImport() public method

Test default import functionality.
public testImport ( )
    public function testImport()
    {
        $data = $this->getElementIndexSettingsData();
        $mockElementIndexesService = $this->getMockElementIndexesService($data);
        $this->setComponent(Craft::app(), 'elementIndexes', $mockElementIndexesService);
        $import = $this->schematicElementIndexSettingsService->import($data);
        $this->assertTrue($import instanceof Result);
        $this->assertTrue($import->hasErrors());
    }