NerdsAndCompany\Schematic\Services\UsersTest::testUsersServiceImportWithForce PHP Метод

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

Test users service import.
    public function testUsersServiceImportWithForce()
    {
        $mockFieldsService = $this->getMockFieldServiceForImport();
        $mockSchematicFieldsService = $this->getMockSchematicFieldServiceForImport();
        $this->setComponent(Craft::app(), 'fields', $mockFieldsService);
        $this->setComponent(Craft::app(), 'schematic_fields', $mockSchematicFieldsService);
        $import = $this->schematicUsersService->import(['fieldLayout' => []]);
        $this->assertTrue($import instanceof Result);
    }