コード例 #1
0
ファイル: PatronTest.php プロジェクト: CaseyH33/Beer_Me
 function testUpdatePatron()
 {
     $name = "Kyle Pratuch";
     $email = "*****@*****.**";
     $test_patron = new Patron($name, $email);
     $test_patron->save();
     $name2 = "Jason Bethel";
     $email2 = "*****@*****.**";
     //Act
     $test_patron->updatePatron($name2, $email2);
     $result = Patron::getAll();
     //Assert
     $this->assertEquals($test_patron, $result[0]);
 }