@@ -82,7 +82,8 @@ public function testRetentionPolicyNoLock()
8282 $ this ->bucket ->reload ();
8383 $ effectiveTime = $ this ->bucket ->info ()['retentionPolicy ' ]['effectiveTime ' ];
8484
85- $ this ->assertNull ($ this ->bucket ->info ()['retentionPolicy ' ]['isLocked ' ]);
85+ $ this ->assertFalse (array_key_exists ('isLocked ' ,
86+ $ this ->bucket ->info ()['retentionPolicy ' ]));
8687 $ this ->assertNotNull ($ effectiveTime );
8788 $ this ->assertEquals ($ this ->bucket ->info ()['retentionPolicy ' ]['retentionPeriod ' ], $ retentionPeriod );
8889
@@ -106,7 +107,7 @@ public function testRetentionPolicyNoLock()
106107 );
107108 $ this ->bucket ->reload ();
108109
109- $ this ->assertNull ( $ this ->bucket ->info ()[ ' retentionPolicy ' ] );
110+ $ this ->assertFalse ( array_key_exists ( ' retentionPolicy ' , $ this ->bucket ->info ()) );
110111
111112 $ outputString = <<<EOF
112113Bucket {$ this ->bucket ->name ()} retention period set for $ retentionPeriod seconds
@@ -133,7 +134,8 @@ public function testRetentionPolicyLock()
133134 );
134135 $ this ->bucket ->reload ();
135136
136- $ this ->assertNull ($ this ->bucket ->info ()['retentionPolicy ' ]['isLocked ' ]);
137+ $ this ->assertFalse (array_key_exists ('isLocked ' ,
138+ $ this ->bucket ->info ()['retentionPolicy ' ]));
137139
138140 $ this ->commandTester ->execute (
139141 [
@@ -221,7 +223,8 @@ public function testEnableDisableGetDefaultEventBasedHold()
221223 public function testEnableDisableEventBasedHold ()
222224 {
223225 $ this ->uploadObject ();
224- $ this ->assertNull ($ this ->object ->info ()['eventBasedHold ' ]);
226+
227+ $ this ->assertFalse (array_key_exists ('eventBasedHold ' , $ this ->object ->info ()));
225228
226229 $ this ->commandTester ->execute (
227230 [
@@ -256,7 +259,7 @@ public function testEnableDisableEventBasedHold()
256259 public function testEnableDisableTemporaryHold ()
257260 {
258261 $ this ->uploadObject ();
259- $ this ->assertNull ( $ this ->object ->info ()[ ' temporaryHold ' ] );
262+ $ this ->assertFalse ( array_key_exists ( ' temporaryHold ' , $ this ->object ->info ()) );
260263
261264 $ this ->commandTester ->execute (
262265 [
0 commit comments