From 5b5a3833ed9aa7cb183ba6121a0af6bb4fe0e4cc Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Sun, 29 May 2016 17:20:00 +0200 Subject: [PATCH] Fixed dumb mistake --- tests/TestCase/ORM/QueryRegressionTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/TestCase/ORM/QueryRegressionTest.php b/tests/TestCase/ORM/QueryRegressionTest.php index 2d8be3c84da..aa9e0f86b6e 100644 --- a/tests/TestCase/ORM/QueryRegressionTest.php +++ b/tests/TestCase/ORM/QueryRegressionTest.php @@ -551,11 +551,13 @@ public function testDeepBelongsToManySubqueryStrategy2() */ public function testDeepHasManyEitherStrategy() { + $this->loadFixtures('Tags', 'FeaturedTags', 'TagsTranslations'); + $tags = TableRegistry::get('Tags'); + $this->skipIf( - $this->connection->driver() instanceof \Cake\Database\Driver\Sqlserver, + $tags->connection()->driver() instanceof \Cake\Database\Driver\Sqlserver, 'SQL server is temporarily weird in this test, will investigate later' ); - $this->loadFixtures('Tags', 'FeaturedTags', 'TagsTranslations'); $tags = TableRegistry::get('Tags'); $featuredTags = TableRegistry::get('FeaturedTags'); $featuredTags->belongsTo('Tags');