Exemplo n.º 1
0
 function testBusinessContactEmail()
 {
     //Arrange
     $business_name = "IBM";
     $business_phone = "5033133131";
     $business_contact = "john";
     $business_website = "walkins.com";
     $business_address = "123 fake st";
     $business_contact_email = "*****@*****.**";
     $id = 1;
     $test_business = new Business($business_name, $business_phone, $business_contact, $business_website, $business_address, $business_contact_email, $id);
     $test_business->save();
     //Act
     $new_business_contact_email = "*****@*****.**";
     $test_business->updateContactEmail($new_business_contact_email);
     //Assert
     $this->assertEquals("*****@*****.**", $test_business->getBusinessContactEmail());
 }