コード例 #1
0
 function test_updateUser1_Id()
 {
     //Arrange
     $user1_id = 1;
     $user2_id = 2;
     $user1_confirm = 1;
     $user2_confirm = 1;
     $location_id = 1;
     $confirm_meet_usr1 = 1;
     $confirm_meet_usr2 = 0;
     $id = 1;
     $test_meetup = new Meetup($user1_id, $user2_id, $user1_confirm, $user2_confirm, $location_id, $confirm_meet_usr1, $confirm_meet_usr2, $id);
     $test_meetup->save();
     $new_user1_id = 2;
     //Act
     $test_meetup->updateUser1_Id($new_user1_id);
     //Assert
     $this->assertEquals($test_meetup->getuser1_id(), $new_user1_id);
 }