refactor: Divi library adapters with manifest and submit-layout mirror
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -7,6 +7,7 @@ namespace LIT\MCP\Tests\Unit\Integrations\Divi\Library;
|
||||
use Brain\Monkey\Functions;
|
||||
use LIT\MCP\Abilities\Rev;
|
||||
use LIT\MCP\Abilities\WriteFailed;
|
||||
use LIT\MCP\Integrations\Divi\Library\DiviLibraryStore;
|
||||
use LIT\MCP\Integrations\Divi\Library\LibraryItemSpec;
|
||||
use LIT\MCP\Integrations\Divi\Library\LibrarySaveAbility;
|
||||
use LIT\MCP\Integrations\Divi\Pages\DiviSaver;
|
||||
@@ -112,8 +113,8 @@ final class LibrarySaveAbilityTest extends TestCase
|
||||
|
||||
self::assertTrue($result['ok']);
|
||||
self::assertTrue($this->specs[0]->global);
|
||||
self::assertSame('divi/button', $this->specs[0]->meta()['_et_pb_module_type']);
|
||||
self::assertSame('[]', $this->specs[0]->meta()['_et_pb_excluded_global_options']);
|
||||
self::assertSame('divi/button', DiviLibraryStore::metaFor($this->specs[0])['_et_pb_module_type']);
|
||||
self::assertSame('[]', DiviLibraryStore::metaFor($this->specs[0])['_et_pb_excluded_global_options']);
|
||||
}
|
||||
|
||||
public function testRefusesAGlobalInstanceAndColumnsAndCreatesNothing(): void
|
||||
|
||||
Reference in New Issue
Block a user