set order in HABTM in unit tests to make it stable in mysql 5.7

This commit is contained in:
Val Bancer 2017-07-11 00:14:08 +02:00
parent bdb8e9b6d5
commit 2290b612f8

View file

@ -260,7 +260,13 @@ class Article extends CakeTestModel {
* *
* @var array * @var array
*/ */
public $hasAndBelongsToMany = array('Tag'); public $hasAndBelongsToMany = array(
'Tag' => array(
'order' => array(
'Tag.id' => 'ASC',
),
),
);
/** /**
* validate property * validate property