Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
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 = ['Title' => $page->Title]; |
||
19 | $mutator = new IdentityIndexablePayloadMutator(); |
||
20 | $mutator->mutatePayload($page, $payload); |
||
|
|||
21 | $this->assertEquals([ |
||
22 | 'Title' => 'The Break In San Marino Is Bright', |
||
23 | 'Link' => '/the-break-in-san-marino-is-bright/', |
||
24 | ], $payload); |
||
25 | } |
||
27 |