Closed (fixed)
Project:
Simplenews
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
26 May 2015 at 15:02 UTC
Updated:
7 Aug 2015 at 19:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
LKS90 commentedHere is a patch which adds a separate test class to enable the demo module (and test it). The testing part isn't really finished yet. Things that are done in simplenews_demo.install can't really be verified (I don't know where else to look). Setting the from-name and address is the only thing the test asserts.
Comment #3
LKS90 commentedCopy&pasteed the test but missed one instance of tmgmt_demo.
New patch.
Comment #6
LKS90 commentedLatest patch, now also testing the settings set by the demo module, the newsletters added and sent by it and the subscribers the demo module adds.
Comment #7
berdirAt least the contexts setting no longer exists and should be removed.
This is obviously not a proper fix. But it shows the problem, we can't realy on this being available in the test. Except if we make it so.
I think we should move this into _install() and set the theme dynamically to the current default theme which you can get from system.theme:default config.
It also means that we need to check that those blocks exists, because this change means that they don't I think.
no leading / in drupalGet(). More below.
We should also assert on the node titles I think.
This text actually looks brong, there should be a number there (X sent out of 3)
Should be reverted.
Comment #8
LKS90 commentedAll the feedback should be implemented in this patch. I also fixed the sent_count issue you noticed in 4. and ammended the adminTest so it still passes. All tests should pass.
Comment #9
miro_dietikerThere are parts in this patch that are not related to this issue.
As a followup: The demo module still lacks a general intro node (sticky) with some links / references to relevant parts in the application. Example: collect_demo
Comment #10
LKS90 commentedRemoved the unrelated changes (and directed them to Sebastian who was working on the issue but couldn't reproduce).
This should be a clean patch.
Comment #11
miro_dietikerYeah. Committed.
Please create a followup about this bartik dependency problem.
Comment #13
sasanikolic commented@LKS90 - Please, it would be great if you could paste the link to the followup issues next time.
Comment #14
berdirWhy on earth is this extending from WebTestBase in search_api and how were the tests here green?
Testbot is completely broken right now..
If you enable bartik and then manually install simplenews_demo then the dependency stuff should be working fine...
Re-opening this, we should either fix this asap or revert.
Comment #15
LKS90 commentedNew patch, the WebTestBase is the simpletest one now, I added tests for the two blocks.
I now manually install the theme and then the module, but that doesn't change anything for the test ()
Edit: Re-add the dependency on bartik in the block config?
Comment #16
berdirThe previous patch has not been reverted, you need to do a diff against that, this won't apply.
Comment #17
LKS90 commentedRebased version!
Comment #19
berdirCommitted.