diff --git a/test/draggableviews.test b/test/draggableviews.test index 5a457b8..5b28013 100644 --- a/test/draggableviews.test +++ b/test/draggableviews.test @@ -10,8 +10,17 @@ */ class DraggableviewsTestCase extends DrupalWebTestCase { - function setUp() { - parent::setUp(array('ctools', 'views', 'views_ui', 'entity', 'draggableviews', 'draggableviews_test')); + /** + * {@inheritdoc} + */ + function setUp(array $modules = array()) { + $modules[] = 'ctools'; + $modules[] = 'views'; + $modules[] = 'views_ui'; + $modules[] = 'entity'; + $modules[] = 'draggableviews'; + $modules[] = 'draggableviews_test'; + parent::setUp($modules); } /** @@ -219,7 +228,7 @@ function testSort() { // Check contextual link existence. $contextual_links = $this->xpath('//ul[@class="contextual-links views-contextual-links-page"]/li/a'); $href = (string) $contextual_links[0]['href']; - $this->assertTrue(strpos($href, 'users-set?destination=users-display') !== FALSE, t('Contextual link exists.')); + $this->assertEqual($href, url('users-set', array('query' => array('destination' => 'users-display')))); } }