dont run test that fails on mysql or sqlite database

This commit is contained in:
thrillfall 2021-10-05 23:24:12 +02:00
parent 871257ede2
commit a11850e995
1 changed files with 7 additions and 0 deletions

View File

@ -3,9 +3,12 @@ declare(strict_types=1);
namespace tests\Integration\Migration; namespace tests\Integration\Migration;
use Doctrine\DBAL\Platforms\PostgreSQL100Platform;
use OC\AllConfig; use OC\AllConfig;
use OC\Log; use OC\Log;
use OC\Migration\SimpleOutput; use OC\Migration\SimpleOutput;
use OC\OCS\Exception;
use OC\OCS\Result;
use OCA\GPodderSync\Db\EpisodeAction\EpisodeActionEntity; use OCA\GPodderSync\Db\EpisodeAction\EpisodeActionEntity;
use OCA\GPodderSync\Db\EpisodeAction\EpisodeActionMapper; use OCA\GPodderSync\Db\EpisodeAction\EpisodeActionMapper;
use OCA\GPodderSync\Db\EpisodeAction\EpisodeActionRepository; use OCA\GPodderSync\Db\EpisodeAction\EpisodeActionRepository;
@ -54,6 +57,10 @@ class TimestampMigrationTest extends TestCase
public function testTimestampConversionRepairStep() public function testTimestampConversionRepairStep()
{ {
if (!$this->dbConnection->getDatabasePlatform() instanceof PostgreSQL100Platform) {
self::markTestSkipped("This test only works on postgres");
}
$episodeActionEntity = new EpisodeActionEntity(); $episodeActionEntity = new EpisodeActionEntity();
$episodeActionEntity->setPodcast("https://podcast_01.url"); $episodeActionEntity->setPodcast("https://podcast_01.url");
$episodeActionEntity->setEpisode(uniqid("https://episode_01.url")); $episodeActionEntity->setEpisode(uniqid("https://episode_01.url"));