@@ -112,14 +112,18 @@ public function testExecute($options, $deployMode, $expectedString, $expectedOpt
112
112
->method ('installDataFixtures ' );
113
113
114
114
$ this ->assertSame (Cli::RETURN_SUCCESS , $ this ->commandTester ->execute ($ options ));
115
- $ this ->assertStringContainsString ($ expectedString , $ this ->commandTester ->getDisplay ());
115
+ $ this ->assertEquals ($ expectedString , $ this ->commandTester ->getDisplay ());
116
116
}
117
117
118
118
/**
119
119
* @return array
120
120
*/
121
121
public function executeDataProvider ()
122
122
{
123
+ $ mediaGalleryNotice = "Media files stored outside of 'Media Gallery Allowed' folders will not be available "
124
+ . "to the media gallery. \n"
125
+ . "Please refer to Developer Guide for more details. \n" ;
126
+
123
127
return [
124
128
[
125
129
'options ' => [
@@ -128,7 +132,7 @@ public function executeDataProvider()
128
132
],
129
133
'deployMode ' => \Magento \Framework \App \State::MODE_PRODUCTION ,
130
134
'expectedString ' => 'Please re-run Magento compile command. Use the command "setup:di:compile" '
131
- . PHP_EOL ,
135
+ . PHP_EOL . $ mediaGalleryNotice ,
132
136
'expectedOptions ' => [
133
137
'keep-generated ' => false ,
134
138
'convert-old-scripts ' => false ,
@@ -145,7 +149,7 @@ public function executeDataProvider()
145
149
'--keep-generated ' => true ,
146
150
],
147
151
'deployMode ' => \Magento \Framework \App \State::MODE_PRODUCTION ,
148
- 'expectedString ' => '' ,
152
+ 'expectedString ' => $ mediaGalleryNotice ,
149
153
'expectedOptions ' => [
150
154
'keep-generated ' => true ,
151
155
'convert-old-scripts ' => false ,
@@ -158,7 +162,7 @@ public function executeDataProvider()
158
162
[
159
163
'options ' => ['--magento-init-params ' => '' , '--convert-old-scripts ' => false ],
160
164
'deployMode ' => \Magento \Framework \App \State::MODE_DEVELOPER ,
161
- 'expectedString ' => '' ,
165
+ 'expectedString ' => $ mediaGalleryNotice ,
162
166
'expectedOptions ' => [
163
167
'keep-generated ' => false ,
164
168
'convert-old-scripts ' => false ,
@@ -171,7 +175,7 @@ public function executeDataProvider()
171
175
[
172
176
'options ' => ['--magento-init-params ' => '' , '--convert-old-scripts ' => false ],
173
177
'deployMode ' => \Magento \Framework \App \State::MODE_DEFAULT ,
174
- 'expectedString ' => '' ,
178
+ 'expectedString ' => $ mediaGalleryNotice ,
175
179
'expectedOptions ' => [
176
180
'keep-generated ' => false ,
177
181
'convert-old-scripts ' => false ,
0 commit comments