Skip to content

Commit 87dc0e5

Browse files
committed
Mark DB related tests skipped on Windows
1 parent a81bb80 commit 87dc0e5

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

src/cli/tests/Flow/CLI/Tests/Integration/DatabaseTableListCommandTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,22 @@
1010
use Flow\CLI\Tests\Context\DatabaseContext;
1111
use Flow\ETL\Tests\FlowTestCase;
1212
use Symfony\Component\Console\Tester\CommandTester;
13+
use Flow\Filesystem\Tests\OperatingSystem;
1314

1415
final class DatabaseTableListCommandTest extends FlowTestCase
1516
{
1617
protected ?DatabaseContext $dbContext = null;
1718

19+
use OperatingSystem;
20+
1821
protected function setUp() : void
1922
{
2023
parent::setUp();
2124

25+
if ($this->isWindows()) {
26+
self::markTestSkipped('DatabaseTableListCommand is not supported on Windows.');
27+
}
28+
2229
$this->dbContext = new DatabaseContext();
2330
$this->dbContext->dropAllTables();
2431
}

src/cli/tests/Flow/CLI/Tests/Integration/DatabaseTableSchemaCommandTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,22 @@
1010
use Flow\CLI\Tests\Context\DatabaseContext;
1111
use Flow\ETL\Tests\FlowTestCase;
1212
use Symfony\Component\Console\Tester\CommandTester;
13+
use Flow\Filesystem\Tests\OperatingSystem;
1314

1415
final class DatabaseTableSchemaCommandTest extends FlowTestCase
1516
{
1617
protected ?DatabaseContext $dbContext = null;
1718

19+
use OperatingSystem;
20+
1821
protected function setUp() : void
1922
{
2023
parent::setUp();
2124

25+
if ($this->isWindows()) {
26+
self::markTestSkipped('DatabaseTableListCommand is not supported on Windows.');
27+
}
28+
2229
$this->dbContext = new DatabaseContext();
2330
$this->dbContext->dropAllTables();
2431
}

0 commit comments

Comments
 (0)