feat: Theme-Optionen und Schriften-Upload in der Divi-Integration; je ein geteilter Adapter; Restore von theme_options
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
35e92fcb6c
commit
7e7568ea62
@@ -59,6 +59,9 @@ final class DiviIntegrationTest extends TestCase
|
||||
'lit/divi-design-detach',
|
||||
'lit/divi-colors-set',
|
||||
'lit/divi-variables-set',
|
||||
'lit/divi-theme-options-get',
|
||||
'lit/divi-theme-options-update',
|
||||
'lit/divi-fonts-upload',
|
||||
];
|
||||
|
||||
public function testProvidesTheDiviAbilitiesOnlyWithDivi5(): void
|
||||
|
||||
@@ -56,7 +56,9 @@ final class DiviToolFeaturesTest extends TestCase
|
||||
'lit/divi-presets-set' => ['design-read', 'preset-write', 'catalog'],
|
||||
'lit/divi-presets-delete' => ['design-read', 'preset-write'],
|
||||
'lit/divi-design-snapshots' => [],
|
||||
'lit/divi-design-restore' => ['design-read', 'preset-write', 'color-write', 'variable-write'],
|
||||
'lit/divi-design-restore' => [
|
||||
'design-read', 'preset-write', 'color-write', 'variable-write', 'theme-option-read', 'theme-option-write',
|
||||
],
|
||||
'lit/divi-presets-assign' => [
|
||||
'page-read', 'page-write', 'catalog', 'design-read', 'preset-write', 'library-read', 'library-write',
|
||||
'tb-write', 'roles',
|
||||
@@ -67,6 +69,9 @@ final class DiviToolFeaturesTest extends TestCase
|
||||
],
|
||||
'lit/divi-colors-set' => ['design-read', 'color-write'],
|
||||
'lit/divi-variables-set' => ['design-read', 'variable-write'],
|
||||
'lit/divi-theme-options-get' => ['theme-option-read'],
|
||||
'lit/divi-theme-options-update' => ['theme-option-read', 'theme-option-write'],
|
||||
'lit/divi-fonts-upload' => ['font-upload'],
|
||||
// Library (divi-library)
|
||||
'lit/library-list' => ['library-read', 'roles'],
|
||||
'lit/library-find-similar' => ['page-read', 'catalog', 'roles'],
|
||||
@@ -194,6 +199,10 @@ final class DiviToolFeaturesTest extends TestCase
|
||||
'lit/divi-design-restore', ['snapshot_id' => 'variables-20261016T100000Z-aaaaaa'],
|
||||
['design-read', 'variable-write'],
|
||||
],
|
||||
'design-restore of theme_options' => [
|
||||
'lit/divi-design-restore', ['snapshot_id' => 'theme_options-20261016T100000Z-aaaaaa'],
|
||||
['theme-option-read', 'theme-option-write'],
|
||||
],
|
||||
'library-list' => ['lit/library-list', [], ['library-read', 'roles']],
|
||||
'library-list of one entry' => [
|
||||
'lit/library-list', ['id' => $library], ['library-read', 'roles', 'page-read', 'design-read'],
|
||||
@@ -351,6 +360,7 @@ final class DiviToolFeaturesTest extends TestCase
|
||||
'lit/library-make-global' => 'library-write', 'lit/library-save' => 'library-write',
|
||||
'lit/divi-presets-set' => 'preset-write', 'lit/divi-presets-delete' => 'preset-write',
|
||||
'lit/divi-colors-set' => 'color-write', 'lit/divi-variables-set' => 'variable-write',
|
||||
'lit/divi-theme-options-update' => 'theme-option-write', 'lit/divi-fonts-upload' => 'font-upload',
|
||||
'lit/divi-design-restore' => 'preset-write', 'lit/divi-design-detach' => 'preset-write',
|
||||
'lit/divi-presets-assign' => 'page-write', 'lit/tb-assign' => 'tb-write', 'lit/tb-activate' => 'tb-write',
|
||||
'lit/tb-create-template' => 'tb-write',
|
||||
|
||||
Reference in New Issue
Block a user