allows('id')->andReturn('core'); $core->allows('isAvailable')->andReturn(true); $text = (new InstructionsBuilder(new IntegrationRegistry($core)))->build(); self::assertStringContainsString('Aktive Integrationen: core', $text); self::assertStringContainsString('lit-guide', $text); self::assertStringContainsString('Status', $text); self::assertLessThan(2000, strlen($text), 'Instructions must stay short – they are loaded in every conversation.'); } }