PHP Classes

File: tests/TestCase.php

Recommend this page to a friend!
  Classes of Arda Günsüren   ElevenLabs Laravel   tests/TestCase.php   Download  
File: tests/TestCase.php
Role: Unit test script
Content type: text/plain
Description: Test class
Class: ElevenLabs Laravel
Generate speech from text using the ElevenLabs API
Author: By
Last change:
Date: 11 days ago
Size: 887 bytes
 

Contents

Class file image Download
<?php

namespace ArdaGnsrn\ElevenLabs\Tests;

use
ArdaGnsrn\ElevenLabs\ElevenLabsServiceProvider;
use
Illuminate\Database\Eloquent\Factories\Factory;
use
Orchestra\Testbench\TestCase as Orchestra;

class
TestCase extends Orchestra
{
    protected function
setUp(): void
   
{
       
parent::setUp();

       
Factory::guessFactoryNamesUsing(
            fn (
string $modelName) => 'ArdaGnsrn\\ElevenLabs\\Database\\Factories\\'.class_basename($modelName).'Factory'
       
);
    }

    protected function
getPackageProviders($app)
    {
        return [
           
ElevenLabsServiceProvider::class,
        ];
    }

    public function
getEnvironmentSetUp($app)
    {
       
config()->set('database.default', 'testing');

       
/*
        $migration = include __DIR__.'/../database/migrations/create_elevenlabs-laravel_table.php.stub';
        $migration->up();
        */
   
}
}