eZ\Publish\Core\FieldType\Tests\RichText\Gateway\LegacyStorageTest::getStorageGateway PHP Method

getStorageGateway() protected method

Returns a ready to test LegacyStorage gateway.
protected getStorageGateway ( ) : LegacyStorage
return eZ\Publish\Core\FieldType\RichText\RichTextStorage\Gateway\LegacyStorage
    protected function getStorageGateway()
    {
        if (!isset($this->storageGateway)) {
            $this->storageGateway = new LegacyStorage(new UrlStorage());
            $this->storageGateway->setConnection($this->getDatabaseHandler());
        }
        return $this->storageGateway;
    }