fixed code style, skipped pgsql and sqlite incompartible tests

This commit is contained in:
Val Bancer 2017-07-09 20:05:53 +02:00
parent 794ce22f37
commit d72c2d7e0e
3 changed files with 14 additions and 10 deletions

View file

@ -1444,6 +1444,7 @@ class TranslateBehaviorTest extends CakeTestCase {
} }
public function testBeforeFindAllI18nConditions() { public function testBeforeFindAllI18nConditions() {
$this->skipIf(!$this->db instanceof Mysql, 'This test is only compatible with Mysql.');
$this->loadFixtures('TranslateArticle', 'TranslatedArticle', 'User'); $this->loadFixtures('TranslateArticle', 'TranslatedArticle', 'User');
$TestModel = new TranslatedArticle(); $TestModel = new TranslatedArticle();
$TestModel->cacheQueries = false; $TestModel->cacheQueries = false;
@ -1525,6 +1526,7 @@ class TranslateBehaviorTest extends CakeTestCase {
} }
public function testBeforeFindCountI18nConditions() { public function testBeforeFindCountI18nConditions() {
$this->skipIf(!$this->db instanceof Mysql, 'This test is only compatible with Mysql.');
$this->loadFixtures('TranslateArticle', 'TranslatedArticle', 'User'); $this->loadFixtures('TranslateArticle', 'TranslatedArticle', 'User');
$TestModel = new TranslatedArticle(); $TestModel = new TranslatedArticle();
$TestModel->cacheQueries = false; $TestModel->cacheQueries = false;

View file

@ -6426,6 +6426,7 @@ class ModelReadTest extends BaseModelTest {
} }
public function testBuildQueryAllI18nConditions() { public function testBuildQueryAllI18nConditions() {
$this->skipIf(!$this->db instanceof Mysql, 'This test is only compatible with Mysql.');
$this->loadFixtures('TranslateArticle', 'TranslatedArticle', 'User'); $this->loadFixtures('TranslateArticle', 'TranslatedArticle', 'User');
$TestModel = new TranslatedArticle(); $TestModel = new TranslatedArticle();
$TestModel->cacheQueries = false; $TestModel->cacheQueries = false;
@ -6495,6 +6496,7 @@ class ModelReadTest extends BaseModelTest {
} }
public function testBuildQueryCountI18nConditions() { public function testBuildQueryCountI18nConditions() {
$this->skipIf(!$this->db instanceof Mysql, 'This test is only compatible with Mysql.');
$this->loadFixtures('TranslateArticle', 'TranslatedArticle', 'User'); $this->loadFixtures('TranslateArticle', 'TranslatedArticle', 'User');
$TestModel = new TranslatedArticle(); $TestModel = new TranslatedArticle();
$TestModel->cacheQueries = false; $TestModel->cacheQueries = false;