docs: lit-divi-catalog shows both result shapes (trial)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01At3V6SjwbMe6eMzVGW3Hs7
This commit is contained in:
@@ -21,6 +21,16 @@ final class DiviCatalogAbilityTest extends TestCase
|
||||
return new DiviCatalogAbility($modules);
|
||||
}
|
||||
|
||||
/** Trial feedback: both result shapes as one-line examples. */
|
||||
public function testDescriptionShowsBothResultShapes(): void
|
||||
{
|
||||
$description = $this->ability()->description();
|
||||
|
||||
self::assertStringContainsString('{"modules": [{"name": "divi/heading"', $description);
|
||||
self::assertStringContainsString('{"module": {"name": "divi/heading"', $description);
|
||||
self::assertStringContainsString('"notes": [', $description);
|
||||
}
|
||||
|
||||
public function testListsModulesWithShortformFlag(): void
|
||||
{
|
||||
$result = $this->ability()->execute([]);
|
||||
|
||||
Reference in New Issue
Block a user