Ejemplo n.º 1
0
 /**
  * @testdox  Tests that getIdentity() by default returns null.
  *
  * @covers  JApplicationBase::getIdentity
  */
 public function testGetIdentity()
 {
     $this->assertNull($this->class->getIdentity());
 }
Ejemplo n.º 2
0
 /**
  * Tests the JApplicationBase::loadIdentity and JApplicationBase::getIdentity methods.
  *
  * @return  void
  *
  * @since   12.3
  */
 public function testLoadGetIdentityGetJUser()
 {
     $mock = $this->getMock('JUser', array(), array(), '', false);
     $this->class->loadIdentity($mock);
     $this->assertInstanceOf('JUser', $this->class->getIdentity());
 }