Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | public function testGetSourceRecord() |
||
12 | { |
||
13 | $form = $this->createMock(Form::class); |
||
14 | $form->expects($this->once())->method('getRecord')->willReturn('foo'); |
||
15 | |||
16 | $field = new HistoryViewerField('Test'); |
||
17 | $field->setForm($form); |
||
18 | |||
19 | $this->assertSame('foo', $field->getSourceRecord()); |
||
20 | } |
||
22 |