Comments

WidgetsBurritos created an issue. See original summary.

WidgetsBurritos’s picture

Status: Active » Needs review
StatusFileSize
new3.26 KB

Status: Needs review » Needs work

The last submitted patch, 2: panels-pane-report-web-tests-filters-2849677-2.patch, failed testing.

WidgetsBurritos’s picture

Assigned: Unassigned » bighappyface
Status: Needs work » Needs review
StatusFileSize
new1013 bytes
new3.26 KB

Helps if I point the test at the right page...

WidgetsBurritos’s picture

StatusFileSize
new3.04 KB
new956 bytes

Just a minor tweak. Removing a redundant function here.

bighappyface’s picture

+++ b/tests/PanelsPaneReportWebTestCase.test
@@ -105,4 +106,49 @@ class PanelsPaneReportWebTestCase extends DrupalWebTestCase {
+    $this->assertRaw('<option value="retriever">retriever</option>', 'Has a retriever puppy.');

Wouldn't that message be misleading? If the check is that the retrieve option is there, and the assertion fails, then the message "Has a retriever puppy." would be incorrect, no? Why even set the messages for assertRaw? The default messaging is better than assertTrue and indicates exactly what it was looking for.

WidgetsBurritos’s picture

StatusFileSize
new1.7 KB
new2.45 KB

@bighappyface good call. I've updated it. Additionally, I removed some of those `assertNoRaw()` commands because they didn't really make a whole lot of sense.

bighappyface’s picture

Status: Needs review » Reviewed & tested by the community

+1 LGTM

WidgetsBurritos’s picture

Status: Reviewed & tested by the community » Fixed
WidgetsBurritos’s picture

Status: Fixed » Closed (fixed)