Skip to content

Commit

Permalink
Skip flaky test when no results come back.
Browse files Browse the repository at this point in the history
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 3, 2016
1 parent ed59722 commit 418cdc4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/TestCase/ORM/QueryRegressionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 418cdc4

Please sign in to comment.