/** * Tests Auth->fetchUser() with active INACTIVE_USER */ public function testFetchUser_INACTIVE_USER() { $user = $this->Auth->fetchUser(2); $this->assertType('Q\\Auth_SimpleUser', $user); $this->assertEquals(2, $user->getId(), 'id'); $this->assertEquals('Ben Baboon', $user->getFullname()); $this->assertEquals('baboon', $user->getUsername()); $this->assertEquals(md5('ben'), $user->getPassword()); $this->assertEquals(array('ape', 'primate'), $user->getRoles()); $this->assertFalse($user->isActive(), 'active'); }