コード例 #1
0
 public function testDeleteUser()
 {
     $email = '*****@*****.**';
     $user = $this->userManager->createUser($email, 'password');
     $this->userManager->insert($user);
     $this->assertEquals($user, $this->userManager->findOneBy(array('email' => $email)));
     $this->userManager->delete($user);
     $this->assertNull($this->userManager->findOneBy(array('email' => $email)));
 }