tests/Http/Cookie/SessionTest.php
/**
     * Tests the ability to flash one-time session keys, and verifies that they don't last loner
     * than intended.
     */
Tests the ability to flash one-time session keys, and verifies that they don't last loner
than intended.
Tests the ability to flash one - time session keys and verifies that they don ' t last loner than intended .
public function testSessionFlashStore()
    {
        $this->session->flash('testFlashKey', true);
        $this->assertNull($this->session->get('testFlashKey'));
        $secondPageSession = new Session();
        $thirdPageSession = new Session();
        $this->assertTrue($secondPageSession->get('testFlashKey'));
        $this->assertNull($thirdPageSession->get('testFlashKey'));
    }
public function testSessionFlashStore ( ) { $ this -> session -> flash ( 'testFlashKey' , true ) ; $ this -> assertNull ( $ this -> session -> get ( 'testFlashKey' ) ) ; $ secondPageSession = new Session ( ) ; $ thirdPageSession = new Session ( ) ; $ this -> assertTrue ( $ secondPageSession -> get ( 'testFlashKey' ) ) ; $ this -> assertNull ( $ thirdPageSession -> get ( 'testFlashKey' ) ) ; }
Tests the ability to flash one-time session keys, and verifies that they don't last loner
 than intended.
Tests the ability to flash one - time session keys and verifies that they don ' t last loner than intended .
// Store flash data // Verify the key does not currently work // Create new sessions to simulate second and third pageloads // Second page should have the key // Third page should not have the key