Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | public function testGetters(): void |
||
13 | { |
||
14 | $table = $this->createMock(Table::class); |
||
15 | $localFk = new ForeignKeyConstraint(['foo'], new Table('table1'), ['lol']); |
||
16 | $localFk->setLocalTable(new Table('table3')); |
||
|
|||
17 | $remoteFk = new ForeignKeyConstraint(['foo2'], new Table('table2'), ['lol2']); |
||
18 | $remoteFk->setLocalTable(new Table('table3')); |
||
19 | $ns = $this->createMock(DefaultNamingStrategy::class); |
||
20 | $descriptor = new PivotTableMethodsDescriptor($table, $localFk, $remoteFk, $ns, AnnotationParser::buildWithDefaultAnnotations([]), 'Bean\Namespace', 'ResultIterator\Namespace'); |
||
21 | |||
22 | $this->assertSame($table, $descriptor->getPivotTable()); |
||
23 | $this->assertSame($localFk, $descriptor->getLocalFk()); |
||
24 | $this->assertSame($remoteFk, $descriptor->getRemoteFk()); |
||
25 | } |
||
27 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.