Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | class RecordTest extends AbstractTest |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * @return array |
||
20 | */ |
||
21 | public function providerGetManagerName() |
||
22 | { |
||
23 | return [ |
||
24 | ["Notifications_Table", "Notifications_Tables"], |
||
25 | ["Donation", "Donations"], |
||
26 | ]; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @dataProvider providerGetManagerName |
||
31 | * @param string $recordName |
||
32 | * @param string $managerName |
||
33 | */ |
||
34 | public function testGetManagerName($recordName, $managerName) |
||
35 | { |
||
36 | $record = new Record(); |
||
37 | $record->setClassName($recordName); |
||
|
|||
38 | self::assertSame($managerName, $record->getManagerName()); |
||
39 | } |
||
40 | |||
41 | protected function setUp() : void |
||
52 | } |
||
53 | } |
||
54 |