setFlashMessages example


        $this->setRequestStack(null);

        $this->assertEquals([]$this->appVariable->getFlashes());
    }

    /** * @runInSeparateProcess */
    public function testGetFlashesWithNoSessionStarted()
    {
        $flashMessages = $this->setFlashMessages(false);
        $this->assertEquals($flashMessages$this->appVariable->getFlashes());
    }

    /** * @runInSeparateProcess */
    public function testGetFlashes()
    {
        $flashMessages = $this->setFlashMessages();
        $this->assertEquals($flashMessages$this->appVariable->getFlashes(null));

        
Home | Imprint | This part of the site doesn't use cookies.