PHP Class Contao\CoreBundle\Test\Monolog\ContaoTableProcessorTest

Inheritance: extends Contao\CoreBundle\Test\TestCase
Datei anzeigen Open project: contao/core-bundle

Public Methods

Method Description
actionLevelProvider ( ) : array Provides the test action levels.
anonymizedIpProvider ( ) : array Provides the anonymized IPs.
sourceProvider ( ) : array Provides the sources.
testActionOnErrorLevel ( integer $logLevel, string $expectedAction ) Tests the action for different error levels.
testAnonymizesIp ( string $input, string $expected ) Tests that IP addresses are anonymized.
testBrowser ( ) Tests that the browser is added.
testExistingActionIsNotChanged ( integer $logLevel ) Tests that an existing action is not changed.
testInstantiation ( ) Tests the object instantiation.
testInvokation ( ) Tests the __invoke() method.
testIpOnEmptyRequest ( ) Tests that an IP is added if there is no request.
testSource ( Symfony\Component\DependencyInjection\ContainerInterface $container, string | null $contextSource, string | null $expectedSource ) Tests that the source is added.
testUsername ( ) Tests that the username is added.

Private Methods

Method Description
createContaoTableProcessor ( Symfony\Component\HttpFoundation\RequestStack $requestStack = null, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage = null, boolean $anonymizeIp = true ) : ContaoTableProcessor Creates the ContaoTableProcessor object.
mockContainerWithScope ( string $scope ) : Symfony\Component\DependencyInjection\ContainerInterface | PHPUnit_Framework_MockObject_MockObject Mocks a Symfony container with scope.

Method Details

actionLevelProvider() public method

Provides the test action levels.
public actionLevelProvider ( ) : array
return array

anonymizedIpProvider() public method

Provides the anonymized IPs.
public anonymizedIpProvider ( ) : array
return array

sourceProvider() public method

Provides the sources.
public sourceProvider ( ) : array
return array

testActionOnErrorLevel() public method

Tests the action for different error levels.
public testActionOnErrorLevel ( integer $logLevel, string $expectedAction )
$logLevel integer
$expectedAction string

testAnonymizesIp() public method

Tests that IP addresses are anonymized.
public testAnonymizesIp ( string $input, string $expected )
$input string
$expected string

testBrowser() public method

Tests that the browser is added.
public testBrowser ( )

testExistingActionIsNotChanged() public method

Tests that an existing action is not changed.
public testExistingActionIsNotChanged ( integer $logLevel )
$logLevel integer

testInstantiation() public method

Tests the object instantiation.
public testInstantiation ( )

testInvokation() public method

Tests the __invoke() method.
public testInvokation ( )

testIpOnEmptyRequest() public method

Tests that an IP is added if there is no request.

testSource() public method

Tests that the source is added.
public testSource ( Symfony\Component\DependencyInjection\ContainerInterface $container, string | null $contextSource, string | null $expectedSource )
$container Symfony\Component\DependencyInjection\ContainerInterface
$contextSource string | null
$expectedSource string | null

testUsername() public method

Tests that the username is added.
public testUsername ( )