@@ -489,7 +489,7 @@ public function testConfigDirectiveUnavailable()
489
489
public function testConfigDirectiveGetCountry ()
490
490
{
491
491
$ path = "general/store_information/country_id " ;
492
- $ availableConfigs = [[ 'value ' => $ path] ];
492
+ $ availableConfigs = ['value ' => $ path ];
493
493
$ construction = ["{{config path= {$ path }}} " , 'config ' , " path= {$ path }" ];
494
494
$ expectedCountry = 'United States ' ;
495
495
@@ -499,7 +499,7 @@ public function testConfigDirectiveGetCountry()
499
499
$ this ->store ->expects ($ this ->any ())->method ('getId ' )->willReturn (1 );
500
500
501
501
$ this ->configVariables ->expects ($ this ->once ())
502
- ->method ('getData ' )
502
+ ->method ('getAvailableVars ' )
503
503
->willReturn ($ availableConfigs );
504
504
505
505
$ this ->storeInformation ->expects ($ this ->once ())
@@ -515,7 +515,7 @@ public function testConfigDirectiveGetCountry()
515
515
public function testConfigDirectiveGetRegion ()
516
516
{
517
517
$ path = "general/store_information/region_id " ;
518
- $ availableConfigs = [[ 'value ' => $ path] ];
518
+ $ availableConfigs = ['value ' => $ path ];
519
519
$ construction = ["{{config path= {$ path }}} " , 'config ' , " path= {$ path }" ];
520
520
$ expectedRegion = 'Texas ' ;
521
521
@@ -525,7 +525,7 @@ public function testConfigDirectiveGetRegion()
525
525
$ this ->store ->expects ($ this ->any ())->method ('getId ' )->willReturn (1 );
526
526
527
527
$ this ->configVariables ->expects ($ this ->once ())
528
- ->method ('getData ' )
528
+ ->method ('getAvailableVars ' )
529
529
->willReturn ($ availableConfigs );
530
530
531
531
$ this ->storeInformation ->expects ($ this ->once ())
0 commit comments