| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types = 1); |
||
| 13 | public function testTextPayload(): void |
||
| 14 | { |
||
| 15 | $page = SiteTree::get()->first(); |
||
| 16 | \error_log($page->Title); |
||
| 17 | |||
| 18 | $helper = new SearchHelper(); |
||
| 19 | $payload = $helper->getTextFieldPayload($page); |
||
|
|
|||
| 20 | $this->assertEquals(['sitetree' => [ |
||
| 21 | 'Title' => 'The Break In San Marino Is Bright', |
||
| 22 | 'Content' => 'The wind in Kenya is waste', |
||
| 23 | 'MenuTitle' => 'The Break In San Marino Is Bright', |
||
| 24 | ]], $payload); |
||
| 25 | } |
||
| 27 |