2020use Google \Cloud \Core \Exception \BadRequestException ;
2121use Google \Cloud \Core \Exception \ConflictException ;
2222use Google \Cloud \Core \LongRunning \LongRunningOperation ;
23+ use Google \Cloud \Core \Testing \System \SystemTestCase ;
2324use Google \Cloud \Spanner \Admin \Database \V1 \Client \DatabaseAdminClient ;
2425use Google \Cloud \Spanner \Admin \Database \V1 \CreateBackupEncryptionConfig ;
2526use Google \Cloud \Spanner \Admin \Database \V1 \EncryptionInfo \Type ;
3031/**
3132 * @group spanner
3233 */
33- class BackupTest extends SpannerTestCase
34+ class BackupTest extends SystemTestCase
3435{
36+ use SystemTestCaseTrait;
37+
3538 const BACKUP_PREFIX = 'spanner_backup_ ' ;
3639
3740 protected static $ backupId1 ;
@@ -47,7 +50,7 @@ class BackupTest extends SpannerTestCase
4750
4851 protected static $ project ;
4952
50- private static $ hasSetUp = false ;
53+ private static $ hasSetUpBackup = false ;
5154
5255 /**
5356 * @beforeClass
@@ -59,7 +62,7 @@ public static function setUpTestFixtures(): void
5962 self ::emulatorOnly ();
6063
6164 self ::setUpTestDatabase ();
62- if (self ::$ hasSetUp ) {
65+ if (self ::$ hasSetUpBackup ) {
6366 return ;
6467 }
6568
@@ -112,7 +115,7 @@ public static function setUpTestFixtures(): void
112115 self ::$ backupId1 = uniqid (self ::BACKUP_PREFIX );
113116 self ::$ backupId2 = uniqid ('users- ' );
114117 self ::$ copyBackupId = uniqid ('copy- ' );
115- self ::$ hasSetUp = true ;
118+ self ::$ hasSetUpBackup = true ;
116119 }
117120
118121 public function testCreateBackup ()
0 commit comments