/** * @since 2.1 * * @param string $connectionTypeId * * @return mixed */ public function getConnection($connectionTypeId = 'sparql') { if ($this->connectionManager === null) { $this->setConnectionManager($this->factory->newConnectionManager()); } return parent::getConnection($connectionTypeId); }
public function testCanConstructConnectionManager() { $instance = new SPARQLStoreFactory($this->store); $this->assertInstanceOf('\\SMW\\ConnectionManager', $instance->newConnectionManager()); }