@@ -388,4 +388,65 @@ public function testDeleteAfterDays()
388
388
list ($ ret , $ error ) = $ this ->bucketManager ->deleteAfterDays ($ this ->bucketName , $ key , 1 );
389
389
$ this ->assertEquals (null , $ ret );
390
390
}
391
+
392
+ public function testGetCorsRules ()
393
+ {
394
+ list ($ ret , $ err ) = $ this ->bucketManager ->getCorsRules ($ this ->bucketName );
395
+ $ this ->assertNull ($ err );
396
+ }
397
+
398
+ public function testPutBucketAccessStyleMode ()
399
+ {
400
+ list ($ ret , $ err ) = $ this ->bucketManager ->putBucketAccessStyleMode ($ this ->bucketName , 0 );
401
+ $ this ->assertNull ($ err );
402
+ }
403
+
404
+ public function testPutBucketAccessMode ()
405
+ {
406
+ list ($ ret , $ err ) = $ this ->bucketManager ->putBucketAccessMode ($ this ->bucketName , 0 );
407
+ $ this ->assertNull ($ err );
408
+ }
409
+
410
+ public function testPutReferAntiLeech ()
411
+ {
412
+ list ($ ret , $ err ) = $ this ->bucketManager ->putReferAntiLeech ($ this ->bucketName , 0 , "1 " , "* " );
413
+ $ this ->assertNull ($ err );
414
+ }
415
+
416
+ public function testPutBucketMaxAge ()
417
+ {
418
+ list ($ ret , $ err ) = $ this ->bucketManager ->putBucketMaxAge ($ this ->bucketName , 31536000 );
419
+ $ this ->assertNull ($ err );
420
+ }
421
+
422
+ public function testPutBucketQuota ()
423
+ {
424
+ list ($ ret , $ err ) = $ this ->bucketManager ->putBucketQuota ($ this ->bucketName , -1 , -1 );
425
+ $ this ->assertNull ($ err );
426
+ }
427
+
428
+ public function testGetBucketQuota ()
429
+ {
430
+ list ($ ret , $ err ) = $ this ->bucketManager ->getBucketQuota ($ this ->bucketName );
431
+ $ this ->assertNull ($ err );
432
+ }
433
+
434
+ public function testChangeType ()
435
+ {
436
+ list ($ ret , $ err ) = $ this ->bucketManager ->changeType ($ this ->bucketName , $ this ->key , 0 );
437
+ $ this ->assertNull ($ err );
438
+
439
+ list ($ ret , $ err ) = $ this ->bucketManager ->changeType ($ this ->bucketName , $ this ->key , 1 );
440
+ $ this ->assertNull ($ err );
441
+ }
442
+
443
+ public function testChangeStatus ()
444
+ {
445
+ list ($ ret , $ err ) = $ this ->bucketManager ->changeStatus ($ this ->bucketName , $ this ->key , 1 );
446
+ $ this ->assertNull ($ err );
447
+
448
+ list ($ ret , $ err ) = $ this ->bucketManager ->changeStatus ($ this ->bucketName , $ this ->key , 0 );
449
+ $ this ->assertNull ($ err );
450
+ }
451
+
391
452
}
0 commit comments