| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function testGetSourceRecord() |
||
| 26 | { |
||
| 27 | $form = $this->createMock(Form::class); |
||
| 28 | $form->expects($this->once())->method('getRecord')->willReturn('foo'); |
||
| 29 | |||
| 30 | $field = new HistoryViewerField('Test'); |
||
| 31 | $field->setForm($form); |
||
| 32 | |||
| 33 | $this->assertSame('foo', $field->getSourceRecord()); |
||
| 34 | } |
||
| 36 |