예제 #1
0
 /**
  * Tests JUser Parameter setting and retrieval.
  *
  * @return  void
  *
  * @since   12.1
  *
  * @covers JUser::defParam
  * @covers JUser::getParam
  * @covers JUser::setParam
  */
 public function testParameter()
 {
     $this->assertThat($this->object->getParam('holy', 'fred'), $this->equalTo('fred'));
     $this->object->defParam('holy', 'batman');
     $this->assertThat($this->object->getParam('holy', 'fred'), $this->equalTo('batman'));
     $this->object->setParam('holy', 'batman');
     $this->assertThat($this->object->getParam('holy', 'fred'), $this->equalTo('batman'));
 }