Neos\Flow\Tests\Unit\Session\Aspect\LoggingAspectTest::logDestroyDoesNotRequireArgumentReason PHP Method

logDestroyDoesNotRequireArgumentReason() public method

Proofs correct logging behaviour without argument reason given
    public function logDestroyDoesNotRequireArgumentReason()
    {
        $testSession = new TransientSession();
        $testSession->start();
        $testSessionId = $testSession->getId();
        $mockJoinPoint = new JoinPoint($testSession, TransientSession::class, 'destroy', []);
        $mockSystemLogger = $this->createMock(SystemLoggerInterface::class);
        $mockSystemLogger->expects($this->once())->method('log')->with($this->equalTo('TransientSession: Destroyed session with id ' . $testSessionId . ': no reason given'));
        $loggingAspect = new LoggingAspect();
        $this->inject($loggingAspect, 'systemLogger', $mockSystemLogger);
        $loggingAspect->logDestroy($mockJoinPoint);
    }