-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test with MySQL Server 5.6 and fix unordered export/2D assertions (#956)
- Loading branch information
Showing
27 changed files
with
271 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -541,9 +541,9 @@ public function testJoinHasOneHasMany(): void | |
$ref_many = $j->hasMany('Token', ['model' => $m_t]); // hasMany on JOIN (use default our_field, their_field) | ||
|
||
$m_u2 = $m_u->load(1); | ||
$this->assertEquals([ | ||
['id' => 30, 'user_id' => 1, 'token' => 'ABC'], | ||
['id' => 31, 'user_id' => 1, 'token' => 'DEF'], | ||
$this->assertSameExportUnordered([ | ||
['id' => 30, 'user_id' => '1', 'token' => 'ABC'], | ||
['id' => 31, 'user_id' => '1', 'token' => 'DEF'], | ||
], $m_u2->ref('Token')->export()); | ||
|
||
// hasMany email model (uses custom our_field, their_field) | ||
|
@@ -553,9 +553,9 @@ public function testJoinHasOneHasMany(): void | |
$ref_many = $j->hasMany('Email', ['model' => $m_e, 'our_field' => 'contact_id', 'their_field' => 'contact_id']); // hasMany on JOIN (use custom our_field, their_field) | ||
|
||
$m_u2 = $m_u->load(1); | ||
$this->assertEquals([ | ||
['id' => 40, 'contact_id' => 10, 'address' => '[email protected]'], | ||
['id' => 41, 'contact_id' => 10, 'address' => '[email protected]'], | ||
$this->assertSameExportUnordered([ | ||
['id' => 40, 'contact_id' => '10', 'address' => '[email protected]'], | ||
['id' => 41, 'contact_id' => '10', 'address' => '[email protected]'], | ||
], $m_u2->ref('Email')->export()); | ||
} | ||
|
||
|
Oops, something went wrong.