Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public function testGetId() |
||
12 | { |
||
13 | $strategy = new ConfigStrategy([ |
||
14 | 'name' => null, |
||
15 | 'team' => 'avengers', |
||
16 | ]); |
||
17 | |||
18 | $bag = new SimpleBag([ |
||
19 | 'id' => 0, |
||
20 | 'name' => 'Hulk', |
||
21 | ]); |
||
22 | |||
23 | $this->assertEquals([ |
||
24 | 'name' => 'Hulk', |
||
25 | 'team' => 'avengers', |
||
26 | ], $strategy->getRecordIdentifier($bag)); |
||
27 | } |
||
28 | |||
47 |