feat: DesignSystemWriter – Presets über Divis Sync-Ablauf schreiben (Mirror preset-sync)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
6ee8f9258a
commit
3fe83e39d3
@@ -184,7 +184,10 @@ final class DiviCheckCommandTest extends TestCase
|
||||
|
||||
self::assertSame(0, $code);
|
||||
self::assertSame(
|
||||
['library-submit-layout', 'tb-api-save', 'tb-load-setting-options', 'tb-store-template', 'vb-sync-flags'],
|
||||
[
|
||||
'library-submit-layout', 'preset-sync', 'tb-api-save', 'tb-load-setting-options', 'tb-store-template',
|
||||
'vb-sync-flags',
|
||||
],
|
||||
array_keys(DiviReference::expected($this->expectedFile))
|
||||
);
|
||||
self::assertStringStartsWith(
|
||||
@@ -193,7 +196,7 @@ final class DiviCheckCommandTest extends TestCase
|
||||
);
|
||||
}
|
||||
|
||||
/** Minimal stand-ins for the five mirrored Divi functions at their real paths. */
|
||||
/** Minimal stand-ins for the six mirrored Divi functions at their real paths. */
|
||||
private function writeDivi(): void
|
||||
{
|
||||
$files = [
|
||||
@@ -204,6 +207,8 @@ final class DiviCheckCommandTest extends TestCase
|
||||
. "function et_theme_builder_load_template_setting_options( \$ids ) {\n}",
|
||||
'includes/builder-5/server/VisualBuilder/REST/SyncToServer/SyncToServerController.php' =>
|
||||
"class SyncToServerController {\n\tpublic static function update( \$request ) {\n\t}\n}",
|
||||
'includes/builder-5/server/Packages/GlobalData/GlobalPresetController.php' =>
|
||||
"class GlobalPresetController {\n\tpublic static function sync( \$request ) {\n\t}\n}",
|
||||
];
|
||||
foreach ($files as $path => $code) {
|
||||
$file = $this->themeDir . '/' . $path;
|
||||
|
||||
Reference in New Issue
Block a user