feat: jedes Divi-Tool und lit/content-create erklärt seine Divi-Fähigkeiten (RequiresDiviFeatures, DeclaresRequirements, FeatureSets); Tabelle Tool → Fähigkeiten als Test
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
e387d8d29e
commit
fdbda8012c
@@ -9,6 +9,7 @@ use LIT\MCP\Integrations\Divi\Compose\VariableRef;
|
||||
use LIT\MCP\Integrations\Divi\Pages\DiviContentComposer;
|
||||
use LIT\MCP\Integrations\Divi\Pages\DiviSaver;
|
||||
use LIT\MCP\Integrations\Divi\Pages\DynamicContentMap;
|
||||
use LIT\MCP\Integrations\Divi\Release\DiviFeature;
|
||||
use LIT\MCP\Tests\Support\DiviFixtures;
|
||||
use LIT\MCP\Tests\Support\DiviWriterFixture;
|
||||
use LIT\MCP\Tests\Unit\TestCase;
|
||||
@@ -68,6 +69,17 @@ final class DiviContentComposerTest extends TestCase
|
||||
];
|
||||
}
|
||||
|
||||
public function testRequirementsNameTheCapabilitiesANewEntryNeeds(): void
|
||||
{
|
||||
$requirements = $this->composer()->requirements();
|
||||
sort($requirements);
|
||||
|
||||
self::assertSame(['catalog', 'design-read', 'dynamic-sources', 'page-read', 'page-write'], $requirements);
|
||||
foreach ($requirements as $id) {
|
||||
self::assertNotNull(DiviFeature::tryFrom($id), $id);
|
||||
}
|
||||
}
|
||||
|
||||
public function testChecksBeforeTheEntryExistsWithDivisMapForNoEntry(): void
|
||||
{
|
||||
self::assertNull($this->composer()->check('page', self::sections()));
|
||||
|
||||
Reference in New Issue
Block a user