PHP Класс Artesaos\Defender\Testing\AbstractTestCase

Наследование: extends Orchestra\Testbench\TestCase
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$providers array Array of service providers should be loaded before tests.
$skipProvidersFor array Array of test case which should not load the service providers.

Открытые методы

Метод Описание
assertUsingTrait ( string $trait, mixed $instance ) Assert if the instance or classname uses a trait.
migrate ( string | array $path = null ) Performs migrations.
resourcePath ( string $path = null ) : string Get the resources path.
seed ( string | array $seeder = 'DatabaseSeeder' ) Seed database.
srcPath ( string $path = null ) : string Get source package path.
stubsPath ( string $path = null ) : string Stubs path.

Защищенные методы

Метод Описание
getEnvironmentSetUp ( Illuminate\Foundation\Application $app ) : void Define environment setup.
getPackageProviders ( Illuminate\Foundation\Application $app ) : array Get package providers.
parseSubPath ( string $path ) : string Trim slashes of path and return prefixed by DIRECTORY_SEPARATOR.

Описание методов

assertUsingTrait() публичный метод

Assert if the instance or classname uses a trait.
public assertUsingTrait ( string $trait, mixed $instance )
$trait string Name of the trait (namespaced)
$instance mixed Instance or name of the class

getEnvironmentSetUp() защищенный метод

Define environment setup.
protected getEnvironmentSetUp ( Illuminate\Foundation\Application $app ) : void
$app Illuminate\Foundation\Application
Результат void

getPackageProviders() защищенный метод

Get package providers.
protected getPackageProviders ( Illuminate\Foundation\Application $app ) : array
$app Illuminate\Foundation\Application
Результат array

migrate() публичный метод

Performs migrations.
public migrate ( string | array $path = null )
$path string | array string or array of paths to find migrations.

parseSubPath() защищенный метод

Trim slashes of path and return prefixed by DIRECTORY_SEPARATOR.
protected parseSubPath ( string $path ) : string
$path string
Результат string

resourcePath() публичный метод

Get the resources path.
public resourcePath ( string $path = null ) : string
$path string
Результат string

seed() публичный метод

Seed database.
public seed ( string | array $seeder = 'DatabaseSeeder' )
$seeder string | array String or Array of classes to seed.

srcPath() публичный метод

Get source package path.
public srcPath ( string $path = null ) : string
$path string
Результат string

stubsPath() публичный метод

Stubs path.
public stubsPath ( string $path = null ) : string
$path string
Результат string

Описание свойств

$providers защищенное свойство

Array of service providers should be loaded before tests.
protected array $providers
Результат array

$skipProvidersFor защищенное свойство

Array of test case which should not load the service providers.
protected array $skipProvidersFor
Результат array