Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | public function updateIsEnabled($record) |
||
11 | { |
||
12 | // First fixture is explicitely disable (from HistoryControllerFactoryTest.yml) |
||
13 | if ($record->Title === '1') { |
||
14 | return false; |
||
15 | } |
||
16 | |||
17 | // second fixture is explicitely enable (from HistoryControllerFactoryTest.yml) |
||
18 | if ($record->Title === '2') { |
||
19 | return true; |
||
20 | } |
||
23 |