@@ -40,6 +40,10 @@ public function setup()
40
40
public function testIndexAction ($ expected )
41
41
{
42
42
$ this ->sampleData ->expects ($ this ->once ())->method ('isDeployed ' )->willReturn ($ expected ['isSampledataEnabled ' ]);
43
+ $ this ->sampleData ->expects ($ this ->once ())->method ('isInstalledSuccessfully ' )
44
+ ->willReturn ($ expected ['isSampleDataInstalled ' ]);
45
+ $ this ->sampleData ->expects ($ this ->once ())->method ('isInstallationError ' )
46
+ ->willReturn ($ expected ['isSampleDataErrorInstallation ' ]);
43
47
$ this ->lists ->expects ($ this ->once ())->method ('getTimezoneList ' )->willReturn ($ expected ['timezone ' ]);
44
48
$ this ->lists ->expects ($ this ->once ())->method ('getCurrencyList ' )->willReturn ($ expected ['currency ' ]);
45
49
$ this ->lists ->expects ($ this ->once ())->method ('getLocaleList ' )->willReturn ($ expected ['language ' ]);
@@ -64,8 +68,13 @@ public function indexActionDataProvider()
64
68
$ timezones = ['timezone ' => ['America/New_York ' =>'EST ' , 'America/Chicago ' => 'CST ' ]];
65
69
$ currency = ['currency ' => ['USD ' =>'US Dollar ' , 'EUR ' => 'Euro ' ]];
66
70
$ language = ['language ' => ['en_US ' =>'English (USA) ' , 'en_UK ' => 'English (UK) ' ]];
67
- $ sampleDataTrue = ['isSampledataEnabled ' => true ];
68
- $ sampleDataFalse = ['isSampledataEnabled ' => false ];
71
+ $ sampleData = [
72
+ 'isSampleDataInstalled ' => null ,
73
+ 'isSampleDataErrorInstallation ' => null ,
74
+ 'isSampledataEnabled ' => null
75
+ ];
76
+ $ sampleDataTrue = array_merge ($ sampleData , ['isSampledataEnabled ' => true ]);
77
+ $ sampleDataFalse = array_merge ($ sampleData , ['isSampledataEnabled ' => false ]);
69
78
70
79
return [
71
80
'with_all_data ' => [array_merge ($ timezones , $ currency , $ language , $ sampleDataTrue )],
@@ -76,7 +85,7 @@ public function indexActionDataProvider()
76
85
'empty_timezone_data ' => [array_merge (['timezone ' => []], $ currency , $ language , $ sampleDataTrue )],
77
86
'empty_language_data ' => [array_merge ($ timezones , $ currency , ['language ' => []], $ sampleDataTrue )],
78
87
'false_sample_data ' => [array_merge ($ timezones , $ currency , $ language , $ sampleDataFalse )],
79
- 'no_sample_data ' => [array_merge ($ timezones , $ currency , $ language , [ ' isSampledataEnabled ' => null ] )],
88
+ 'no_sample_data ' => [array_merge ($ timezones , $ currency , $ language , $ sampleData )],
80
89
];
81
90
}
82
91
0 commit comments