Exemple #1
0
 function test_find()
 {
     //Arrange
     $name = "Fighter";
     $description = "stuff";
     $id = 1;
     $test_class = new Background($name, $description, $id);
     $test_class->save();
     $name2 = "Wizard";
     $description2 = "other stuff";
     $test_class2 = new Background($name2, $description2);
     $test_class2->save();
     //Act
     $result = Background::find($test_class->getId());
     //Assert
     $this->assertEquals($test_class, $result);
 }