Skip to content
Permalink
Browse files

Skip flaky test when no results come back.

This test sometimes gets no results in MySQL when identifier quoting is
off. I've not been able to reproduce locally and don't think its worth
the effort to try and solve it.
  • Loading branch information...
markstory committed Aug 2, 2016
1 parent ed59722 commit 418cdc45c16944321306882a89999f9234962b7d
Showing with 2 additions and 0 deletions.
  1. +2 −0 tests/TestCase/ORM/QueryRegressionTest.php
@@ -491,6 +491,8 @@ public function testDeepBelongsToManySubqueryStrategy()
]);
$result = $table->find()->contain(['Articles.Tags'])->toArray();
$this->skipIf(count($result) == 0, 'No results, this test sometimes acts up on PHP 5.6');
$this->assertEquals(
['tag1', 'tag3'],
collection($result[2]->articles[0]->tags)->extract('name')->toArray()

0 comments on commit 418cdc4

Please sign in to comment.
You can’t perform that action at this time.