diff --git a/testing/database.rst b/testing/database.rst index a1eb9a1e721..2498555cb6d 100644 --- a/testing/database.rst +++ b/testing/database.rst @@ -75,7 +75,7 @@ it's easy to pass a mock object within a test:: public function testCalculateTotalSalary() { $employee = new Employee(); - $employee->setSalaray(1000); + $employee->setSalary(1000); $employee->setBonus(1100); // Now, mock the repository so it returns the mock of the employee