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

testExistingActionIsNotChanged() public method

Tests that an existing action is not changed.
public testExistingActionIsNotChanged ( integer $logLevel )
$logLevel integer
    public function testExistingActionIsNotChanged($logLevel)
    {
        $processor = $this->createContaoTableProcessor();
        $record = $processor(['level' => $logLevel, 'context' => ['contao' => new ContaoContext(__METHOD__, ContaoContext::CRON)]]);
        /** @var ContaoContext $context */
        $context = $record['extra']['contao'];
        $this->assertEquals(ContaoContext::CRON, $context->getAction());
    }