mirror of
https://github.com/wallabag/wallabag.git
synced 2024-05-31 23:48:06 +00:00
Run install command tests on MySQL
This commit is contained in:
parent
62e412dbd4
commit
463b86c143
|
@ -100,10 +100,6 @@ class InstallCommandTest extends WallabagTestCase
|
||||||
|
|
||||||
public function testRunInstallCommandWithReset()
|
public function testRunInstallCommandWithReset()
|
||||||
{
|
{
|
||||||
if ($this->getTestClient()->getContainer()->get(ManagerRegistry::class)->getConnection()->getDatabasePlatform() instanceof MySQLPlatform) {
|
|
||||||
$this->markTestSkipped('Rollback are not properly handled for MySQL, skipping.');
|
|
||||||
}
|
|
||||||
|
|
||||||
$command = $this->getCommand();
|
$command = $this->getCommand();
|
||||||
$command->disableRunOtherCommands();
|
$command->disableRunOtherCommands();
|
||||||
|
|
||||||
|
@ -134,10 +130,6 @@ class InstallCommandTest extends WallabagTestCase
|
||||||
$this->markTestSkipped('PostgreSQL spotted: can\'t find a good way to drop current database, skipping.');
|
$this->markTestSkipped('PostgreSQL spotted: can\'t find a good way to drop current database, skipping.');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->getTestClient()->getContainer()->get(ManagerRegistry::class)->getConnection()->getDatabasePlatform() instanceof MySQLPlatform) {
|
|
||||||
$this->markTestSkipped('Rollback are not properly handled for MySQL, skipping.');
|
|
||||||
}
|
|
||||||
|
|
||||||
// skipped SQLite check when database is removed because while testing for the connection,
|
// skipped SQLite check when database is removed because while testing for the connection,
|
||||||
// the driver will create the file (so the database) before testing if database exist
|
// the driver will create the file (so the database) before testing if database exist
|
||||||
if ($this->getTestClient()->getContainer()->get(ManagerRegistry::class)->getConnection()->getDatabasePlatform() instanceof SqlitePlatform) {
|
if ($this->getTestClient()->getContainer()->get(ManagerRegistry::class)->getConnection()->getDatabasePlatform() instanceof SqlitePlatform) {
|
||||||
|
@ -177,10 +169,6 @@ class InstallCommandTest extends WallabagTestCase
|
||||||
|
|
||||||
public function testRunInstallCommandChooseResetSchema()
|
public function testRunInstallCommandChooseResetSchema()
|
||||||
{
|
{
|
||||||
if ($this->getTestClient()->getContainer()->get(ManagerRegistry::class)->getConnection()->getDatabasePlatform() instanceof MySQLPlatform) {
|
|
||||||
$this->markTestSkipped('Rollback are not properly handled for MySQL, skipping.');
|
|
||||||
}
|
|
||||||
|
|
||||||
$command = $this->getCommand();
|
$command = $this->getCommand();
|
||||||
$command->disableRunOtherCommands();
|
$command->disableRunOtherCommands();
|
||||||
|
|
||||||
|
@ -202,16 +190,6 @@ class InstallCommandTest extends WallabagTestCase
|
||||||
|
|
||||||
public function testRunInstallCommandChooseNothing()
|
public function testRunInstallCommandChooseNothing()
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
* [PHPUnit\Framework\Error\Warning (2)]
|
|
||||||
* filemtime(): stat failed for /home/runner/work/wallabag/wallabag/var/cache/tes_/ContainerNVNxA24/appAppKernelTestDebugContainer.php
|
|
||||||
*
|
|
||||||
* I don't know from where the "/tes_/" come from, it should be "/test/" instead ...
|
|
||||||
*/
|
|
||||||
if ($this->getTestClient()->getContainer()->get(ManagerRegistry::class)->getConnection()->getDatabasePlatform() instanceof MySQLPlatform) {
|
|
||||||
$this->markTestSkipped('That test is failing when using MySQL when clearing the cache (see code comment)');
|
|
||||||
}
|
|
||||||
|
|
||||||
$application = new Application($this->getTestClient()->getKernel());
|
$application = new Application($this->getTestClient()->getKernel());
|
||||||
|
|
||||||
// drop database first, so the install command won't ask to reset things
|
// drop database first, so the install command won't ask to reset things
|
||||||
|
@ -244,10 +222,6 @@ class InstallCommandTest extends WallabagTestCase
|
||||||
|
|
||||||
public function testRunInstallCommandNoInteraction()
|
public function testRunInstallCommandNoInteraction()
|
||||||
{
|
{
|
||||||
if ($this->getTestClient()->getContainer()->get(ManagerRegistry::class)->getConnection()->getDatabasePlatform() instanceof MySQLPlatform) {
|
|
||||||
$this->markTestSkipped('Rollback are not properly handled for MySQL, skipping.');
|
|
||||||
}
|
|
||||||
|
|
||||||
$command = $this->getCommand();
|
$command = $this->getCommand();
|
||||||
$command->disableRunOtherCommands();
|
$command->disableRunOtherCommands();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue