コード例 #1
0
 function test_setLocation_Id()
 {
     //Arrange
     $user1_id = 1;
     $user2_id = 2;
     $user1_confirm = 1;
     $user2_confirm = 0;
     $location_id = 12;
     $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->setLocation_Id($location_id);
     $result = $test_meetup->getLocation_Id();
     //Assert
     $this->assertEquals($location_id, $result);
 }