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

public import ( array $settingDefinitions, boolean $force = false ) : Result
$settingDefinitions array
$force boolean
Результат Result
Пример #1
0
 /**
  * Test default import functionality.
  *
  * @covers ::import
  */
 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());
 }