PHP 클래스 Artesaos\Defender\Testing\AbstractTestCase

상속: extends Orchestra\Testbench\TestCase
파일 보기 프로젝트 열기: artesaos/defender 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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