This issue works as an index to track and discuss progress on implementing more tests in the module.
These tasks are tagged with a "Needs tests" tag.
Some tasks against Twitter API do not need OAuth, hence the following classification:
Investigation prior to implement tests:
- #1342942: Evaluate the use of runkit to reimplement methods that call to the Twitter API on tests
- #1343474: Evaluate the use of a mock REST server to simulate communication with the Twitter API
Without using OAuth:
- #1342672: (No OAuth) Simulate the addition of a Twitter account to a user
- #1342678: (No OAuth) Load tweets of user account
With OAuth:
- #1342682: (OAuth) Add Twitter account
- #1342692: (OAuth) Load tweets for a user's Twitter account.
- #1342700: (OAuth) Simulate signing in with Twitter
- #1342710: Post to Twitter when creating content.
- Post to Twitter through an action.
- Post to Twitter through a rule.
Comments
Comment #0.0
juampynr commentedAdded task.
Comment #0.1
juampynr commentedAdded task.
Comment #0.2
juampynr commentedAdded a task.
Comment #0.3
juampynr commentedAdded a task.
Comment #0.4
juampynr commentedAdded a task
Comment #0.5
juampynr commentedAdded a task.
Comment #0.6
juampynr commentedAdded issue to test runkit
Comment #0.7
juampynr commentedFixed typo in HTML.
Comment #1
David Hernández commentedIn the issue #1346790: Change hardcoded host to use a drupal variable I've updated the hardcoded host in the Twitter class to use a Drupal variable, to make easy to do tests.
Comment #2
juampynr commentedMoved to 7.x branch.
Comment #3
juampynr commentedDoh! Now actually moving to 7.x branch.
Comment #4
juampynr commentedUpdated title.
Comment #5
xurizaemonhttp://drupal.org/files/uc_dps_pxpay.test from #1807242: Test checkout with PXPay demonstrates one way of doing a couple of steps required for this -
* Allowing us to test Twitter logins without sharing the username/password details (you define the login in settings.php or by editing the .test file)
* Submitting secret details (test CC data in the issue above, twitter user/pass for this issue) to a remote site and being redirected back
Comment #6
juampynr commentedObsolete. Closing.
Comment #6.0
juampynr commentedAdded task