/** * Test that a connection can be created. */ public function testConnectionCreation() { $config = $this->createMock(Config::class); $cache = $this->createMock(Cache::class); $mappingDriver = $this->createMock(MappingDriver::class); $provider = new EntityManagerProvider($config, $cache, $mappingDriver); $this->assertInstanceOf(Connection::class, $provider->getConnection()); }