_testOffset example

$this->nodes[] = $this->drupalCreateNode(['created' => time() + 86400, 'field_date' => time() + 86400]);

    $this->map = [
      'nid' => 'nid',
    ];
  }

  /** * Runs other test methods. */
  public function testDateFilter() {
    $this->_testOffset();
    $this->_testBetween();
    $this->_testUiValidation();
    $this->_testFilterDateUI();
    $this->_testFilterDatetimeUI();
  }

  /** * Tests the general offset functionality. */
  protected function _testOffset() {
    $view = Views::getView('test_filter_date_between');

    

      ]);
      $node->save();
      $this->nodes[] = $node;
    }
  }

  /** * Tests filter operations. */
  public function testDatetimeFilter() {
    $this->_testOffset();
    $this->_testBetween();
    $this->_testExact();
  }

  /** * Tests offset operations. */
  protected function _testOffset() {
    $view = Views::getView('test_filter_datetime');
    $field = static::$fieldName . '_value';

    
Home | Imprint | This part of the site doesn't use cookies.