PHP Class Artesaos\Defender\Testing\DefenderServiceProviderTest

Inheritance: extends AbstractTestCase
Datei anzeigen Open project: artesaos/defender

Protected Properties

Property Type Description
$providers array Array of service providers.
$skipProvidersFor array TestCases that should not register the service provider.

Public Methods

Method Description
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.

Method Details

testContainerShouldBeProvided() public method

Verify if all services are in service container.

testModelBindings() public method

public testModelBindings ( )

testShouldCompileDefenderTemplateHelpers() public method

Verify if blade is rendering defender directives.

testShouldLoadHelpers() public method

Verify if the Defender function helpers are loaded.

testShouldNotCompileDefenderTemplateHelpers() public method

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

testShouldNotLoadHelpers() public method

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() public method

Publishes the configuration and migrations.

Property Details

$providers protected_oe property

Array of service providers.
protected array $providers
return array

$skipProvidersFor protected_oe property

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