Skip to content

Commit c3293d4

Browse files
committed
Add @link annotations to ExportCommandTest methods for improved documentation and reference.
1 parent 707b39d commit c3293d4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/TestCase/Command/ExportCommandTest.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ public function testBuildOptionParser(): void
7676
$this->assertOutputContains($expected);
7777
}
7878

79+
/**
80+
* @link \DatabaseBackup\Command\ExportCommand::execute()
81+
*/
7982
#[Test]
8083
#[RunInSeparateProcess]
8184
public function testExecute(): void
@@ -95,6 +98,9 @@ public function testExecute(): void
9598
$this->assertOutputContains('<success>Backup `' . $expectedFilename . '` has been exported</success>');
9699
}
97100

101+
/**
102+
* @link \DatabaseBackup\Command\ExportCommand::execute()
103+
*/
98104
#[Test]
99105
#[RunInSeparateProcess]
100106
public function testExecuteWithSomeOptions(): void
@@ -115,6 +121,9 @@ public function testExecuteWithSomeOptions(): void
115121
$this->assertOutputContains('<success>Backup `' . $filename . '` has been exported</success>');
116122
}
117123

124+
/**
125+
* @link \DatabaseBackup\Command\ExportCommand::execute()
126+
*/
118127
#[Test]
119128
#[RunInSeparateProcess]
120129
public function testExecuteWithCompressionOption(): void
@@ -132,6 +141,9 @@ public function testExecuteWithCompressionOption(): void
132141
$this->assertOutputContains('<success>Backup `my_backup.sql.gz` has been exported</success>');
133142
}
134143

144+
/**
145+
* @link \DatabaseBackup\Command\ExportCommand::execute()
146+
*/
135147
#[Test]
136148
#[RunInSeparateProcess]
137149
public function testExecuteOnException(): void
@@ -146,6 +158,9 @@ public function testExecuteOnException(): void
146158
$this->assertErrorContains('<error>Exception message</error>');
147159
}
148160

161+
/**
162+
* @link \DatabaseBackup\Command\ExportCommand::execute()
163+
*/
149164
#[Test]
150165
#[RunInSeparateProcess]
151166
public function testExecuteOnStoppedEvent(): void

0 commit comments

Comments
 (0)