Skip to content

Commit 235302f

Browse files
author
Igor Melnikov
committed
MAGETWO-45274: Date Filter Does not Find Rows with "from" Value
Fixing code formatting
1 parent 1f3b546 commit 235302f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/code/Magento/Backend/Test/Unit/Block/Widget/Grid/Column/Filter/DateTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,6 @@ public function testGetHtmlSuccessfulTimestamp()
9696

9797
$output = $this->model->getHtml();
9898
$this->assertContains('id="' . $uniqueHash . '_from" value="' . $yesterday->getTimestamp(), $output);
99-
$this->assertContains('id="' . $uniqueHash . '_to" value="' . $tomorrow->getTimestamp() , $output);
99+
$this->assertContains('id="' . $uniqueHash . '_to" value="' . $tomorrow->getTimestamp(), $output);
100100
}
101101
}

app/code/Magento/Backend/Test/Unit/Block/Widget/Grid/Column/Filter/DateTimeTest.php renamed to app/code/Magento/Backend/Test/Unit/Block/Widget/Grid/Column/Filter/DatetimeTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77
namespace Magento\Backend\Test\Unit\Block\Widget\Grid\Column\Filter;
8+
89
/**
910
* Class DateTimeTest to test Magento\Backend\Block\Widget\Grid\Column\Filter\Date
1011
*
@@ -95,6 +96,6 @@ public function testGetHtmlSuccessfulTimestamp()
9596

9697
$output = $this->model->getHtml();
9798
$this->assertContains('id="' . $uniqueHash . '_from" value="' . $yesterday->getTimestamp(), $output);
98-
$this->assertContains('id="' . $uniqueHash . '_to" value="' . $tomorrow->getTimestamp() , $output);
99+
$this->assertContains('id="' . $uniqueHash . '_to" value="' . $tomorrow->getTimestamp(), $output);
99100
}
100101
}

0 commit comments

Comments
 (0)