Laravel Hetzner Storagebox

PHP MIT

Production-ready Laravel package for integrating Hetzner Storage Box into Laravel applications using the native Storage facade and filesystem API.

Stars
19
Forks
0
Downloads
2,357
Open Issues
0
Files main

Repository Files

Loading file structure...
tests/TestCase.php
<?php

namespace GhostCompiler\Hetzner\StorageBox\Tests;

use GhostCompiler\Hetzner\StorageBox\Facades\HetznerStorageBox;
use GhostCompiler\Hetzner\StorageBox\Providers\HetznerStorageBoxServiceProvider;
use Illuminate\Foundation\Application;
use Orchestra\Testbench\TestCase as OrchestraTestCase;

abstract class TestCase extends OrchestraTestCase
{
    /**
     * Get package providers.
     *
     * @param  Application  $app
     * @return array
     */
    protected function getPackageProviders($app)
    {
        return [
            HetznerStorageBoxServiceProvider::class,
        ];
    }

    /**
     * Get package aliases.
     *
     * @param  Application  $app
     * @return array
     */
    protected function getPackageAliases($app)
    {
        return [
            'HetznerStorageBox' => HetznerStorageBox::class,
        ];
    }

    /**
     * Define environment setup.
     *
     * @param  Application  $app
     * @return void
     */
    protected function getEnvironmentSetUp($app)
    {
        // Setup default config
        $app['config']->set('hetzner-storagebox.token', 'test-token');
        $app['config']->set('hetzner-storagebox.base_url', 'https://api.hetzner.com/v1');
    }
}