@@ -161,7 +161,7 @@ func testBuild(t *testing.T, context spec.G, it spec.S) {
161
161
BuildEnv : packit.Environment {},
162
162
LaunchEnv : packit.Environment {},
163
163
Build : false ,
164
- Launch : true ,
164
+ Launch : false ,
165
165
Cache : false ,
166
166
Metadata : map [string ]interface {}{
167
167
phpdist .DepKey : "" ,
@@ -201,7 +201,7 @@ func testBuild(t *testing.T, context spec.G, it spec.S) {
201
201
Expect (buffer .String ()).To (ContainSubstring ("Executing build process" ))
202
202
})
203
203
204
- context ("when the build plan entry includes the build flag " , func () {
204
+ context ("when the build plan entry includes the build, launch flags " , func () {
205
205
var workingDir string
206
206
207
207
it .Before (func () {
@@ -214,6 +214,7 @@ func testBuild(t *testing.T, context spec.G, it spec.S) {
214
214
Version : "7.2.*" ,
215
215
Metadata : map [string ]interface {}{
216
216
"version-source" : "buildpack.yml" ,
217
+ "launch" : true ,
217
218
"build" : true ,
218
219
},
219
220
}
@@ -225,6 +226,7 @@ func testBuild(t *testing.T, context spec.G, it spec.S) {
225
226
Version : "7.2.*" ,
226
227
Metadata : map [string ]interface {}{
227
228
"version-source" : "buildpack.yml" ,
229
+ "launch" : true ,
228
230
"build" : true ,
229
231
},
230
232
},
@@ -236,7 +238,7 @@ func testBuild(t *testing.T, context spec.G, it spec.S) {
236
238
Expect (os .RemoveAll (workingDir )).To (Succeed ())
237
239
})
238
240
239
- it ("marks the php layer as cached " , func () {
241
+ it ("marks the php layer as build, cache and launch " , func () {
240
242
result , err := build (packit.BuildContext {
241
243
CNBPath : cnbDir ,
242
244
Stack : "some-stack" ,
@@ -248,6 +250,7 @@ func testBuild(t *testing.T, context spec.G, it spec.S) {
248
250
Version : "7.2.*" ,
249
251
Metadata : map [string ]interface {}{
250
252
"version-source" : "buildpack.yml" ,
253
+ "launch" : true ,
251
254
"build" : true ,
252
255
},
253
256
},
@@ -264,6 +267,7 @@ func testBuild(t *testing.T, context spec.G, it spec.S) {
264
267
Version : "7.2.*" ,
265
268
Metadata : map [string ]interface {}{
266
269
"version-source" : "buildpack.yml" ,
270
+ "launch" : true ,
267
271
"build" : true ,
268
272
},
269
273
},
@@ -342,7 +346,7 @@ func testBuild(t *testing.T, context spec.G, it spec.S) {
342
346
BuildEnv : packit.Environment {},
343
347
LaunchEnv : packit.Environment {},
344
348
Build : false ,
345
- Launch : true ,
349
+ Launch : false ,
346
350
Cache : false ,
347
351
Metadata : map [string ]interface {}{
348
352
phpdist .DepKey : "" ,
0 commit comments