Skip to content

Commit f5b2497

Browse files
author
Gabriel Galvao da Gama
committed
Fixed Unit Test based on 2.4.3-develop changes
1 parent e1ade3f commit f5b2497

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/code/Magento/Email/Test/Unit/Model/Template/FilterTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ public function testConfigDirectiveUnavailable()
489489
public function testConfigDirectiveGetCountry()
490490
{
491491
$path = "general/store_information/country_id";
492-
$availableConfigs = [['value' => $path]];
492+
$availableConfigs = ['value' => $path];
493493
$construction = ["{{config path={$path}}}", 'config', " path={$path}"];
494494
$expectedCountry = 'United States';
495495

@@ -499,7 +499,7 @@ public function testConfigDirectiveGetCountry()
499499
$this->store->expects($this->any())->method('getId')->willReturn(1);
500500

501501
$this->configVariables->expects($this->once())
502-
->method('getData')
502+
->method('getAvailableVars')
503503
->willReturn($availableConfigs);
504504

505505
$this->storeInformation->expects($this->once())
@@ -515,7 +515,7 @@ public function testConfigDirectiveGetCountry()
515515
public function testConfigDirectiveGetRegion()
516516
{
517517
$path = "general/store_information/region_id";
518-
$availableConfigs = [['value' => $path]];
518+
$availableConfigs = ['value' => $path];
519519
$construction = ["{{config path={$path}}}", 'config', " path={$path}"];
520520
$expectedRegion = 'Texas';
521521

@@ -525,7 +525,7 @@ public function testConfigDirectiveGetRegion()
525525
$this->store->expects($this->any())->method('getId')->willReturn(1);
526526

527527
$this->configVariables->expects($this->once())
528-
->method('getData')
528+
->method('getAvailableVars')
529529
->willReturn($availableConfigs);
530530

531531
$this->storeInformation->expects($this->once())

0 commit comments

Comments
 (0)