eZ\Publish\Core\Persistence\Legacy\Tests\TestCase::getDatabaseHandler PHP Méthode

getDatabaseHandler() public méthode

Get a ConnectionHandler, which can be used to interact with the configured database. The database connection string is read from an optional environment variable "DATABASE" and defaults to an in-memory SQLite database.
public getDatabaseHandler ( ) : ConnectionHandler
Résultat eZ\Publish\Core\Persistence\Doctrine\ConnectionHandler
    public function getDatabaseHandler()
    {
        if (!$this->handler) {
            $this->handler = ConnectionHandler::createFromConnection($this->getDatabaseConnection());
            $this->db = $this->handler->getName();
        }
        return $this->handler;
    }