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