| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function testGetNewsPageAuthor() |
||
| 15 | { |
||
| 16 | $holder = new NewsHolder(); |
||
| 17 | $holder->Title = 'Holder'; |
||
| 18 | $holder->write(); |
||
| 19 | |||
| 20 | $page = new NewsPage(); |
||
| 21 | $page->Author = 'Leslie Lawless'; |
||
| 22 | $page->ParentID = $holder->ID; |
||
| 23 | $page->write(); |
||
| 24 | |||
| 25 | $field = $page->getNewsPageAuthor(); |
||
| 26 | $this->assertInstanceOf(DBField::class, $field); |
||
| 27 | $this->assertSame('Leslie Lawless', $field->getValue()); |
||
| 28 | } |
||
| 30 |