Skip to content
Snippets Groups Projects
Commit f1c278e8 authored by catch's avatar catch
Browse files

Revert "git commit -m Issue"

This reverts commit c024e97b.
parent 7c3e637c
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,7 @@ public function preRender($values) {
'format' => $this->options['text_input_required_format'],
);
$handler = Views::handlerManager('area')->getHandler($options);
$handler->init($this->view, $this->displayHandler, $options);
$handler->init($this->view, $options);
$this->displayHandler->handlers['empty'] = array(
'area' => $handler,
);
......
......@@ -45,7 +45,7 @@ protected function setUp() {
// Create some random nodes.
for ($i = 0; $i < 5; $i++) {
$this->drupalCreateNode(array('type' => 'article'));
$this->drupalCreateNode();
}
}
......@@ -161,30 +161,6 @@ public function testExposedBlock() {
$this->assertEqual(count($elements), 1, 'One exposed form block found.');
}
/**
* Test the input required exposed form type.
*/
public function testInputRequired() {
$view = entity_load('view', 'test_exposed_form_buttons');
$display = &$view->getDisplay('default');
$display['display_options']['exposed_form']['type'] = 'input_required';
$view->save();
$this->drupalGet('test_exposed_form_buttons');
$this->assertResponse(200);
$this->helperButtonHasLabel('edit-submit-test-exposed-form-buttons', t('Apply'));
// Ensure that no results are displayed.
$rows = $this->xpath("//div[contains(@class, 'views-row')]");
$this->assertEqual(count($rows), 0, 'No rows are displayed by default when no input is provided.');
$this->drupalGet('test_exposed_form_buttons', array('query' => array('type' => 'article')));
// Ensure that results are displayed.
$rows = $this->xpath("//div[contains(@class, 'views-row')]");
$this->assertEqual(count($rows), 5, 'All rows are displayed by default when input is provided.');
}
/**
* Returns a views exposed form ID.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment