File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 1616namespace DatabaseBackup \Test \TestCase \Command ;
1717
1818use Cake \Console \TestSuite \ConsoleIntegrationTestTrait ;
19+ use Cake \Console \TestSuite \StubConsoleOutput ;
1920use Cake \Core \Configure ;
2021use DatabaseBackup \Command \ExportCommand ;
2122use DatabaseBackup \TestSuite \TestCase ;
2930
3031/**
3132 * ExportCommandTest.
32- *
33- * @property \Cake\Console\TestSuite\StubConsoleOutput $_out
3433 */
3534#[CoversClass(ExportCommand::class)]
3635class ExportCommandTest extends TestCase
@@ -72,7 +71,7 @@ public function testBuildOptionParser(): void
7271--verbose, -v Enable verbose output.
7372
7473txt ;
75- $ this ->assertSame ($ expected, $ this -> _out -> messages ()[ 0 ] );
74+ $ this ->assertOutputContains ($ expected );
7675 }
7776
7877 #[Test]
Original file line number Diff line number Diff line change 2929
3030/**
3131 * ImportCommandTest.
32- *
33- * @property \Cake\Console\TestSuite\StubConsoleOutput $_out
3432 */
3533#[CoversClass(ImportCommand::class)]
3634class ImportCommandTest extends TestCase
@@ -72,7 +70,7 @@ public function testBuildOptionParser(): void
7270 (default target directory).
7371
7472txt ;
75- $ this ->assertSame ($ expected, $ this -> _out -> messages ()[ 0 ] );
73+ $ this ->assertOutputContains ($ expected );
7674 }
7775
7876 #[Test]
You can’t perform that action at this time.
0 commit comments