Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev.icinga.com #4678] Tests: Mock request instead of arming classes with functions that override preferences/configuration #389

Closed
icinga-migration opened this issue Sep 5, 2013 · 3 comments
Labels
bug Something isn't working
Milestone

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/4678

Created by elippmann on 2013-09-05 12:01:46 +00:00

Assignee: (none)
Status: Closed (closed on 2014-09-09 14:09:47 +00:00)
Target Version: 2.0-14
Last Update: 2014-09-09 14:09:47 +00:00 (in Redmine)


I refer for example to Icinga\Web\Form which provides the functions setUserPreferences and setConfiguration where the overriden values will be used instead of retrieving them from the request. Especially base classes must not have such bloat. Use mocks instead.
Further Icinga\Module\Monitoring\Form\Command\CommandForm::getAuthorName() returns Test user if the request is of type Zend_Controller_Request_HttpTestCase. Drop that.


Relations:

@icinga-migration
Copy link
Author

Updated by elippmann on 2013-10-25 12:04:03 +00:00

  • Target Version changed from 147 to 140

@icinga-migration
Copy link
Author

Updated by mhein on 2013-12-23 13:18:53 +00:00

  • Tracker changed from Feature to Bug

@icinga-migration
Copy link
Author

Updated by jmeyer on 2014-09-09 14:09:47 +00:00

  • Status changed from New to Closed
  • Target Version changed from 140 to 2.0-14
  • Done % changed from 0 to 100

Fixed mostly as part of #5525

@icinga-migration icinga-migration added bug Something isn't working QA labels Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.0-14 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant