Project:Drupal core
Version:7.x-dev
Component:base system
Category:task
Priority:normal
Assigned:cwgordon7
Status:needs work

Issue Summary

This information is from the code coverage report (see http://coverage.cwgordon.com/coverage).

We need to test:

1) tablesort_header() with an existing cell class.
2) tablesort_header() with an existing query string.
3) Actual tablesorting.

Comments

#1

Assigned to:Anonymous» Wisif

I expect within 3 weeks to test

#2

Title:Tests needed: tablesort.inc» TestingParty08: tablesort.inc
Assigned to:Wisif» Anonymous

Opening this up for the testing party.

#3

Tests for 1 and 2

ekes and SeeSchloss

AttachmentSizeStatusTest resultOperations
common.test.20080828.tablesort.patch1.84 KBIgnored: Check issue status.NoneNone

#4

Status:active» needs review

#5

Patch failed to apply. More information can be found at http://testing.drupal.org/node/13893. If you need help with creating patches please look at http://drupal.org/patch/create

#6

Status:needs review» needs work

#7

Status:needs work» needs review
AttachmentSizeStatusTest resultOperations
common.test.20080831.tablesort.patch1.91 KBIgnored: Check issue status.NoneNone

#8

Assigned to:Anonymous» cwgordon7
Status:needs review» needs work

Various tabs in various places, coding standards generally needs work on this.

#9

Status:needs work» needs review

Clean patch.

AttachmentSizeStatusTest resultOperations
common.test.20080901.tablesort.patch2.01 KBIgnored: Check issue status.NoneNone

#10

Status:needs review» needs work

Miss 3)

#11

Status:needs work» needs review

Re-rolled, 4 passes, 0 fails, 0 exceptions.

AttachmentSizeStatusTest resultOperations
tablesort_tests_01.patch2.21 KBIgnored: Check issue status.NoneNone

#12

Note that these are unit tests, it would be great to have functional tests too eventually.

#13

Meh. Cross-posted, apologies.

#14

Seems like we could test this whenever we test admin/content/node or similar page.

#15

Status:needs review» needs work

Sorry, trying to figure out patching, made a little mistake and didn't patch it properly.

#16

Status:needs work» needs review

Switched status previously based on a bad patch experience. Switching it back to review.

#17

Status:needs review» reviewed & tested by the community

Patched and ran test successfully:
4 passes, 0 fails, 0 exceptions

#18

Status:reviewed & tested by the community» needs work

Since this is a testing party patch, I'm going to be mercilessly nit-picky in this review. It's only because I care. :)

This one was actually hard. :P I had to think about it for awhile.

<?php
+    $ts = array('name' => '', 'sort' => 'asc', 'query_string' => '');
?>

a) I realize it's easy enough to deduce that $ts == $tablesort, but it'd be nice to be explicit about that fact. Needs changing throughout.
b) Coding standards dictate each of these on their own lines. However, this is consistent with the way table-related arrays are done so I'm leaving it alone for now.

<?php
+    $this->assertEqual($new_cell['class'], 'red active');
?>

Red active? What does that mean? Could you add a message parameter here with more specifics about what's being tested? The general rule of thumb is that by reading the output of the messages in SimpleTest module, we can learn what the test run tested for. This advice applies throughout.

<?php
+    $this->assertEqual($new_cell['class'], 'active');
?>

Same here.

<?php
+   * Tests the handling of additional query strings by Druapls tablesort API.
?>

What's Druapl? :)

#19

Component:tests» base system
Category:bug report» task
Priority:critical» normal

Fixing the critical / pending bugs queues to reflect things which are really bugs or release critical.