public function testConfig() { $config = $this->structure->getConfig(); $this->assertArrayHasKey('many_many', $config); $this->assertArrayHasKey('tables', $config); $this->assertCount(5, $this->structure->getTables()); }
public function hasManyToManyTable($name) { $manyMany = $this->structure->getConfig()['many_many']; foreach ($manyMany as $mm) { if (in_array($this->getName(), $mm) && in_array($name, $mm)) { return true; } } return false; }