| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types = 1); |
||
| 13 | public function testMutator(): void |
||
| 14 | { |
||
| 15 | $page = SiteTree::get()->first(); |
||
| 16 | \error_log($page->Title); |
||
| 17 | |||
| 18 | $payload = ['sitetree' => ['Title' => $page->Title]]; |
||
| 19 | $mutator = new AddLinkIndexablePayloadMutator(); |
||
| 20 | $mutator->mutatePayload($page, $payload); |
||
|
|
|||
| 21 | |||
| 22 | $this->assertEquals([ |
||
| 23 | 'Title' => 'The Break In San Marino Is Bright', |
||
| 24 | 'Link' => '/the-break-in-san-marino-is-bright/', |
||
| 25 | ], $payload['sitetree']); |
||
| 26 | } |
||
| 28 |