Skip to content

Commit 53847e4

Browse files
committed
Restore skips for sqlite.
These tests still break CI.
1 parent c70a3bf commit 53847e4

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

tests/TestCase/Model/Table/RequestTableTest.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,21 @@
2525
*/
2626
class RequestTableTest extends TestCase
2727
{
28+
/**
29+
* Setup
30+
*
31+
* Skip tests on SQLite as SQLite complains when tables are changed while a connection is open.
32+
*
33+
* @return void
34+
*/
35+
public function setUp(): void
36+
{
37+
parent::setUp();
38+
$connection = ConnectionManager::get('test');
39+
$this->skipIf($connection->getDriver() instanceof Sqlite, 'Schema insertion/removal breaks SQLite');
40+
}
41+
42+
2843
/**
2944
* test that schema is created on-demand.
3045
*

tests/TestCase/ToolbarServiceTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public function setUp(): void
5757
$this->events = new EventManager();
5858

5959
$connection = ConnectionManager::get('test');
60+
$this->skipIf($connection->getDriver() instanceof Sqlite, 'Schema insertion/removal breaks SQLite');
6061
$this->restore = $GLOBALS['__PHPUNIT_BOOTSTRAP'];
6162
unset($GLOBALS['__PHPUNIT_BOOTSTRAP']);
6263
}

0 commit comments

Comments
 (0)