test introduction rich text

This commit is contained in:
Yisroel Baum 2026-05-27 21:47:07 +03:00
parent c794fda074
commit e9fa31138b
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
2 changed files with 75 additions and 1 deletions

View file

@ -71,6 +71,10 @@ class DemoSeedDataTest extends TestCase
],
$this->serializeChildElements($childElements),
);
$this->assertSame(
$this->expectedIntroductionRichText(),
$childElements[0]->getRichText(),
);
}
private function serializeChildElements(array $childElements): array
@ -85,4 +89,60 @@ class DemoSeedDataTest extends TestCase
return $serializedChildElements;
}
private function expectedIntroductionRichText(): string
{
return '<h2>What is Baderech HaAvoda?</h2>'
. '<h3>Why We Need a Path of Spiritual Practice</h3>'
. "<p>A 'Baderech HaAvoda' is a way of living - a structured "
. 'path for inner and outer growth, spiritual refinement, and '
. 'personal development. It is the art and discipline of knowing '
. 'where to place your attention, how to engage your inner and '
. 'outer world, and how to live the kind of life Hashem designed '
. 'for human beings: a life of wholeness, integration, clarity, '
. 'and joy.</p>'
. '<p>Throughout Jewish history, our sages taught that no person '
. 'can reach their potential without a derech - a framework that '
. 'provides:</p>'
. '<ul><li>Direction</li><li>Focus</li><li>Discernment</li>'
. '<li>Continuity</li><li>Practical Steps</li></ul>'
. '<p>Baderech HaAvoda answers core human questions:</p>'
. '<ul><li>How do I grow?</li><li>How do I align my inner world '
. 'with my values?</li><li>How do I relate to challenges?</li>'
. '<li>Where should I place my mind, heart, and actions each '
. 'day?</li><li>How do I live as the person Hashem intended me '
. 'to be?</li></ul>'
. '<p>Without a derech, people react to life instead of '
. 'responding with wisdom.</p>'
. '<p>Without a derech, inspiration fades as quickly as it '
. 'comes.</p>'
. '<p>Without a derech, a person cannot integrate what they '
. 'learn into who they become.</p>'
. '<p>A Baderech HaAvoda is therefore not a luxury - it is a '
. 'necessity for anyone who wants to live consciously, '
. 'purposefully, and in alignment with their Creator.</p>'
. '<h3>The Challenge of Our Generation</h3>'
. '<p>We live in a time overflowing with information and '
. 'stimulation, yet starving for depth.</p>'
. '<p>Our generation faces challenges that previous generations '
. 'rarely confronted:</p>'
. '<ul><li>Constant Distraction</li><li>Fragmented Attention</li>'
. '<li>Emotional Overwhelm</li><li>Lack of clarity about '
. 'identity and purpose</li><li>Minimal guidance in inner '
. 'development</li><li>Being told what to think rather than how '
. 'to think</li><li>So many are Hashkafikly homeless</li></ul>'
. '<p>People today are not taught:</p>'
. '<ul><li>How to understand themselves</li><li>How to regulate '
. 'their minds</li><li>How to cultivate awareness</li><li>How to '
. 'build a healthy inner life</li><li>How to live as integrated '
. 'human beings</li><li>The few important areas in life to focus '
. 'on</li></ul>'
. '<p>We have incredible access to knowledge, yet many feel lost '
. '- not for lack of information, but for lack of direction.</p>'
. '<p>A Baderech HaAvoda gives structure to the soul, it creates '
. 'inner order, and it transforms scattered potential into '
. 'living wisdom. It is a map for living a wholesome, healthy, '
. 'and spiritually aligned life - the life we were created for.'
. '</p>';
}
}