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:
@@ -8,6 +8,7 @@ use LIT\MCP\Integrations\Divi\BlockTree\Block;
|
||||
use LIT\MCP\Integrations\Divi\BlockTree\LibraryContent;
|
||||
use LIT\MCP\Integrations\Divi\BlockTree\NodeIndex;
|
||||
use LIT\MCP\Integrations\Divi\BlockTree\Parser;
|
||||
use LIT\MCP\Integrations\Divi\Library\DiviLibraryStore;
|
||||
use LIT\MCP\Integrations\Divi\Library\LibraryItemSpec;
|
||||
use LIT\MCP\Tests\Support\DiviFixtures;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
@@ -60,7 +61,7 @@ final class LibraryItemSpecTest extends TestCase
|
||||
self::assertEquals($expectedTerms, $spec->terms());
|
||||
$expectedMeta = array_map(static fn (array $values): string => $values[0], $json['meta']);
|
||||
unset($expectedMeta['_et_pb_row_layout']);
|
||||
self::assertEquals($expectedMeta, $spec->meta());
|
||||
self::assertEquals($expectedMeta, DiviLibraryStore::metaFor($spec));
|
||||
}
|
||||
|
||||
public function testRefusesInstancesColumnsAndGlobalsInsideGlobals(): void
|
||||
|
||||
Reference in New Issue
Block a user