Tests the Day handler.
\Drupal\node\Plugin\views\argument\CreatedDay
public function testDayHandler() {
$view = views_get_view('test_argument_date');
$view
->setDisplay('embed_1');
$this
->executeView($view, array(
'02',
));
$expected = array();
$expected[] = array(
'id' => 2,
);
$this
->assertIdenticalResultset($view, $expected, $this->columnMap);
$view
->destroy();
$view
->setDisplay('embed_1');
$this
->executeView($view, array(
'01',
));
$expected = array();
$expected[] = array(
'id' => 1,
);
$expected[] = array(
'id' => 3,
);
$expected[] = array(
'id' => 4,
);
$expected[] = array(
'id' => 5,
);
$this
->assertIdenticalResultset($view, $expected, $this->columnMap);
$view
->destroy();
$view
->setDisplay('embed_1');
$this
->executeView($view, array(
'23',
));
$expected = array();
$this
->assertIdenticalResultset($view, $expected, $this->columnMap);
}