Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function testGetters() |
||
14 | { |
||
15 | $table = $this->createMock(Table::class); |
||
16 | $localFk = $this->createMock(ForeignKeyConstraint::class); |
||
17 | $remoteFk = $this->createMock(ForeignKeyConstraint::class); |
||
18 | $ns = $this->createMock(DefaultNamingStrategy::class); |
||
19 | $descriptor = new PivotTableMethodsDescriptor($table, $localFk, $remoteFk, $ns, 'Bean\Namespace'); |
||
20 | |||
21 | $this->assertSame($table, $descriptor->getPivotTable()); |
||
22 | $this->assertSame($localFk, $descriptor->getLocalFk()); |
||
23 | $this->assertSame($remoteFk, $descriptor->getRemoteFk()); |
||
24 | } |
||
26 |