Contao\CoreBundle\Test\Monolog\ContaoTableProcessorTest::testActionOnErrorLevel PHP Method

testActionOnErrorLevel() public method

Tests the action for different error levels.
public testActionOnErrorLevel ( integer $logLevel, string $expectedAction )
$logLevel integer
$expectedAction string
    public function testActionOnErrorLevel($logLevel, $expectedAction)
    {
        $processor = $this->createContaoTableProcessor();
        $record = $processor(['level' => $logLevel, 'context' => ['contao' => new ContaoContext(__METHOD__)]]);
        /** @var ContaoContext $context */
        $context = $record['extra']['contao'];
        $this->assertEquals($expectedAction, $context->getAction());
    }