public function SessionTest::testRemove

@dataProvider setProvider

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/Session/SessionTest.php, line 123

Class

SessionTest
SessionTest

Namespace

Symfony\Component\HttpFoundation\Tests\Session

Code

public function testRemove($key, $value) {
  $this->session
    ->set('hi.world', 'have a nice day');
  $this->session
    ->set($key, $value);
  $this->session
    ->remove($key);
  $this
    ->assertEquals(array(
    'hi.world' => 'have a nice day',
  ), $this->session
    ->all());
}