PHP 클래스 Artesaos\Defender\Testing\DefenderServiceProviderTest

상속: extends AbstractTestCase
파일 보기 프로젝트 열기: artesaos/defender

보호된 프로퍼티들

프로퍼티 타입 설명
$providers array Array of service providers.
$skipProvidersFor array TestCases that should not register the service provider.

공개 메소드들

메소드 설명
testContainerShouldBeProvided ( ) Verify if all services are in service container.
testModelBindings ( )
testShouldCompileDefenderTemplateHelpers ( ) Verify if blade is rendering defender directives.
testShouldLoadHelpers ( ) Verify if the Defender function helpers are loaded.
testShouldNotCompileDefenderTemplateHelpers ( ) If configuration is disabled, template helpers will not be available.
testShouldNotLoadHelpers ( ) Verify if the Defender function helpers are loaded.
testShouldPublishConfigAndMigrations ( ) Publishes the configuration and migrations.

메소드 상세

testContainerShouldBeProvided() 공개 메소드

Verify if all services are in service container.

testModelBindings() 공개 메소드

public testModelBindings ( )

testShouldCompileDefenderTemplateHelpers() 공개 메소드

Verify if blade is rendering defender directives.

testShouldLoadHelpers() 공개 메소드

Verify if the Defender function helpers are loaded.

testShouldNotCompileDefenderTemplateHelpers() 공개 메소드

Note: The service provider should not be register before that test.

testShouldNotLoadHelpers() 공개 메소드

Note: The service provider should not be register before that test. Note:That test needs to be runned in isolation. Because it depends of helpers.php (file with functions which are always loaded).

testShouldPublishConfigAndMigrations() 공개 메소드

Publishes the configuration and migrations.

프로퍼티 상세

$providers 보호되어 있는 프로퍼티

Array of service providers.
protected array $providers
리턴 array

$skipProvidersFor 보호되어 있는 프로퍼티

TestCases that should not register the service provider.
protected array $skipProvidersFor
리턴 array