Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function testGetForeignKey() |
||
13 | { |
||
14 | $fk = $this->createMock(ForeignKeyConstraint::class); |
||
15 | $table = $this->createMock(Table::class); |
||
16 | $ns = $this->createMock(DefaultNamingStrategy::class); |
||
17 | $descriptor = new DirectForeignKeyMethodDescriptor($fk, $table, $ns); |
||
18 | |||
19 | $this->assertSame($fk, $descriptor->getForeignKey()); |
||
20 | $this->assertSame($table, $descriptor->getMainTable()); |
||
21 | } |
||
23 |