@@ -65,15 +65,15 @@ public function testSetPublicAccessPreventionToEnforced()
65
65
}
66
66
67
67
/** @depends testSetPublicAccessPreventionToEnforced */
68
- public function testSetPublicAccessPreventionToUnspecified ()
68
+ public function testSetPublicAccessPreventionToInherited ()
69
69
{
70
- $ output = self ::runFunctionSnippet ('set_public_access_prevention_unspecified ' , [
70
+ $ output = self ::runFunctionSnippet ('set_public_access_prevention_inherited ' , [
71
71
self ::$ bucket ->name (),
72
72
]);
73
73
74
74
$ this ->assertStringContainsString (
75
75
sprintf (
76
- "Public Access Prevention has been set to unspecified for %s. " ,
76
+ "Public Access Prevention has been set to inherited for %s. " ,
77
77
self ::$ bucket ->name ()
78
78
),
79
79
$ output
@@ -82,10 +82,10 @@ public function testSetPublicAccessPreventionToUnspecified()
82
82
self ::$ bucket ->reload ();
83
83
$ bucketInformation = self ::$ bucket ->info ();
84
84
$ pap = $ bucketInformation ['iamConfiguration ' ]['publicAccessPrevention ' ];
85
- $ this ->assertEquals ('unspecified ' , $ pap );
85
+ $ this ->assertEquals ('inherited ' , $ pap );
86
86
}
87
87
88
- /** @depends testSetPublicAccessPreventionToUnspecified */
88
+ /** @depends testSetPublicAccessPreventionToInherited */
89
89
public function testGetPublicAccessPrevention ()
90
90
{
91
91
$ output = self ::runFunctionSnippet ('get_public_access_prevention ' , [
@@ -94,7 +94,7 @@ public function testGetPublicAccessPrevention()
94
94
95
95
$ this ->assertStringContainsString (
96
96
sprintf (
97
- "The bucket public access prevention is unspecified for %s. " ,
97
+ "The bucket public access prevention is inherited for %s. " ,
98
98
self ::$ bucket ->name ()
99
99
),
100
100
$ output
@@ -103,6 +103,6 @@ public function testGetPublicAccessPrevention()
103
103
self ::$ bucket ->reload ();
104
104
$ bucketInformation = self ::$ bucket ->info ();
105
105
$ pap = $ bucketInformation ['iamConfiguration ' ]['publicAccessPrevention ' ];
106
- $ this ->assertEquals ('unspecified ' , $ pap );
106
+ $ this ->assertEquals ('inherited ' , $ pap );
107
107
}
108
108
}
0 commit comments