@@ -41,44 +41,38 @@ public function testTableSortExampleBasic() {
41
41
// Ordered by number decending.
42
42
$ item = $ this ->getSession ()->getPage ()->find ('xpath ' , '//tbody/tr/td[1] ' );
43
43
$ this ->assertEquals (7 , $ item ->getText (), 'Ordered by number decending. ' );
44
- drupal_flush_all_caches ();
45
44
46
45
$ this ->drupalGet ('/examples/tablesort-example ' , array ('query ' => array ('sort ' => 'asc ' , 'order ' => 'Numbers ' )));
47
46
$ assert ->statusCodeEquals (200 );
48
47
// Ordered by Number ascending.
49
48
$ item = $ this ->getSession ()->getPage ()->find ('xpath ' , '//tbody/tr/td[1] ' );
50
49
$ this ->assertEquals (1 , $ item ->getText (), 'Ordered by Number ascending. ' );
51
- drupal_flush_all_caches ();
52
50
53
51
// Sort by Letters.
54
52
$ this ->drupalGet ('/examples/tablesort-example ' , array ('query ' => array ('sort ' => 'desc ' , 'order ' => 'Letters ' )));
55
53
$ assert ->statusCodeEquals (200 );
56
54
// Ordered by Letters decending.
57
55
$ item = $ this ->getSession ()->getPage ()->find ('xpath ' , '//tbody/tr/td[2] ' );
58
56
$ this ->assertEquals ('w ' , $ item ->getText (), 'Ordered by Letters decending. ' );
59
- drupal_flush_all_caches ();
60
57
61
58
$ this ->drupalGet ('/examples/tablesort-example ' , array ('query ' => array ('sort ' => 'asc ' , 'order ' => 'Letters ' )));
62
59
$ assert ->statusCodeEquals (200 );
63
60
// Ordered by Letters ascending.
64
61
$ item = $ this ->getSession ()->getPage ()->find ('xpath ' , '//tbody/tr/td[2] ' );
65
62
$ this ->assertEquals ('a ' , $ item ->getText (), 'Ordered by Letters ascending. ' );
66
- drupal_flush_all_caches ();
67
63
68
64
// Sort by Mixture.
69
65
$ this ->drupalGet ('/examples/tablesort-example ' , array ('query ' => array ('sort ' => 'desc ' , 'order ' => 'Mixture ' )));
70
66
$ assert ->statusCodeEquals (200 );
71
67
// Ordered by Mixture decending.
72
68
$ item = $ this ->getSession ()->getPage ()->find ('xpath ' , '//tbody/tr/td[3] ' );
73
69
$ this ->assertEquals ('t982hkv ' , $ item ->getText (), 'Ordered by Mixture decending. ' );
74
- drupal_flush_all_caches ();
75
70
76
71
$ this ->drupalGet ('/examples/tablesort-example ' , array ('query ' => array ('sort ' => 'asc ' , 'order ' => 'Mixture ' )));
77
72
$ assert ->statusCodeEquals (200 );
78
73
// Ordered by Mixture ascending.
79
74
$ item = $ this ->getSession ()->getPage ()->find ('xpath ' , '//tbody/tr/td[3] ' );
80
75
$ this ->assertEquals ('0kuykuh ' , $ item ->getText (), 'Ordered by Mixture ascending. ' );
81
- drupal_flush_all_caches ();
82
76
83
77
}
84
78
0 commit comments