Skip to content

Commit 05fed17

Browse files
committed
test: reorder tests
1 parent fc719c6 commit 05fed17

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

spanner/test/spannerBackupTest.php

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,6 @@ public static function setUpBeforeClass(): void
7676
self::$instance = $spanner->instance(self::$instanceId);
7777
}
7878

79-
public function testCancelBackup()
80-
{
81-
$output = $this->runFunctionSnippet('cancel_backup', [
82-
self::$databaseId
83-
]);
84-
$this->assertStringContainsString('Cancel backup operation complete', $output);
85-
}
86-
8779
public function testCreateDatabaseWithVersionRetentionPeriod()
8880
{
8981
$output = $this->runFunctionSnippet('create_database_with_version_retention_period', [
@@ -94,6 +86,17 @@ public function testCreateDatabaseWithVersionRetentionPeriod()
9486
$this->assertStringContainsString(self::$retentionPeriod, $output);
9587
}
9688

89+
/**
90+
* @depends testCreateDatabaseWithVersionRetentionPeriod
91+
*/
92+
public function testCancelBackup()
93+
{
94+
$output = $this->runFunctionSnippet('cancel_backup', [
95+
self::$databaseId
96+
]);
97+
$this->assertStringContainsString('Cancel backup operation complete', $output);
98+
}
99+
97100
/**
98101
* @depends testCreateDatabaseWithVersionRetentionPeriod
99102
*/

0 commit comments

Comments
 (0)