예제 #1
0
 public function test_newUser()
 {
     $User = new User();
     $this->assertInstanceOf("Railpage\\Users\\User", $User);
     $User->username = "******";
     $User->contact_email = "*****@*****.**";
     $User->setPassword("letmein1234");
     $User->commit();
     $this->assertFalse(!filter_var($User->id, FILTER_VALIDATE_INT));
     $NewUser = new User();
     $this->assertFalse($NewUser->load());
     $Base = new Base();
     $regs = $Base->getUserRegistrationStats();
     $this->assertTrue(count($regs) > 0);
     return $User;
 }