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

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

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