コード例 #1
0
 public function testChecksIfUserExists()
 {
     $email = 'em';
     $userName = '******';
     $expectedId = 123;
     $this->db->SetRows(array(array(ColumnNames::USER_ID => $expectedId)));
     $repo = new UserRepository();
     $actualId = $repo->UserExists($email, $userName);
     $this->assertEquals($expectedId, $actualId);
 }