public function testRemove_WillReturnTrue_IfUserExists() { $passWordEntity = new \GoalioForgotPassword\Entity\Password(); $passWordEntity->setUserId(10)->setRequestKey('test'); $now = date('Y-m-d'); $sql = "INSERT INTO user_password_reset('user_id', 'request_key', 'request_time') VALUES(10, 'test', {$now})"; $this->dbQuery($sql); $this->assertTrue($this->passwordService->remove($passWordEntity)); $this->assertEquals(0, $this->dbQuery("SELECT * FROM user_password_reset")->count()); }