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

Наследование: extends AbstractTestCase
Показать файл Открыть проект

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

Свойство Тип Описание
$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