Skip to content

Commit c5a1666

Browse files
committed
MC-5233: DateTime product attributes support
1 parent 9110f82 commit c5a1666

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

app/code/Magento/Catalog/Test/Unit/Ui/Component/ColumnFactoryTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class ColumnFactoryTest extends TestCase
5656
/**
5757
* @var TimezoneInterface|MockObject
5858
*/
59-
private $timeZone;
59+
private $timezone;
6060

6161
/**
6262
* @inheritdoc
@@ -80,13 +80,13 @@ protected function setUp(): void
8080
$this->column = $this->getMockForAbstractClass(ColumnInterface::class);
8181
$this->uiComponentFactory->method('create')
8282
->willReturn($this->column);
83-
$this->timeZone = $this->createMock(TimezoneInterface::class);
83+
$this->timezone = $this->createMock(TimezoneInterface::class);
8484

8585
$this->columnFactory = $this->objectManager->getObject(
8686
ColumnFactory::class,
8787
[
8888
'componentFactory' => $this->uiComponentFactory,
89-
'timezone' => $this->timeZone,
89+
'timezone' => $this->timezone,
9090
]
9191
);
9292
}
@@ -203,7 +203,7 @@ public function testCreateDateColumn(
203203
'visible' => true,
204204
'filter' => 'dateRange',
205205
'component' => 'Magento_Ui/js/grid/columns/date',
206-
'timeZone' => $expectedTimezone,
206+
'timezone' => $expectedTimezone,
207207
'dateFormat' => $expectedDateFormat,
208208
'options' => [
209209
'showsTime' => $showsTime
@@ -224,15 +224,15 @@ public function testCreateDateColumn(
224224
$this->attribute->method('getFrontendInput')
225225
->willReturn($frontendInput);
226226

227-
$this->timeZone->method('getDateFormat')
227+
$this->timezone->method('getDateFormat')
228228
->with(\IntlDateFormatter::MEDIUM)
229229
->willReturn($dateFormat);
230-
$this->timeZone->method('getDateTimeFormat')
230+
$this->timezone->method('getDateTimeFormat')
231231
->with(\IntlDateFormatter::MEDIUM)
232232
->willReturn($dateTimeFormat);
233-
$this->timeZone->method('getDefaultTimezone')
233+
$this->timezone->method('getDefaultTimezone')
234234
->willReturn($defaultTimezone);
235-
$this->timeZone->method('getConfigTimezone')
235+
$this->timezone->method('getConfigTimezone')
236236
->willReturn($configTimezone);
237237

238238
$this->uiComponentFactory->expects($this->once())

0 commit comments

Comments
 (0)