-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: fix
method.nameCase
errors
- Loading branch information
1 parent
8fc60e7
commit 64c8fce
Showing
11 changed files
with
38 additions
and
74 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -190,7 +190,7 @@ public function testUpsertChangePrimaryKeyOnUniqueIndex(): void | |
->upsert($userData); | ||
|
||
$new = $this->db->table('user') | ||
->getwhere(['email' => '[email protected]']) | ||
->getWhere(['email' => '[email protected]']) | ||
->getRow(); | ||
|
||
$this->assertSame(5, (int) $new->id); | ||
|
@@ -460,7 +460,7 @@ public function testUpsertWithMatchingDataOnUniqueIndexandPrimaryKey(): void | |
$this->db->table('user')->upsert($data); | ||
|
||
$original = $this->db->table('user') | ||
->getwhere(['id' => 6]) | ||
->getWhere(['id' => 6]) | ||
->getRow(); | ||
|
||
$data = [ | ||
|
@@ -474,7 +474,7 @@ public function testUpsertWithMatchingDataOnUniqueIndexandPrimaryKey(): void | |
|
||
// get by id | ||
$row = $this->db->table('user') | ||
->getwhere(['id' => 6]) | ||
->getWhere(['id' => 6]) | ||
->getRow(); | ||
|
||
$this->assertSame('Random Name 356', $row->name); | ||
|
@@ -508,17 +508,17 @@ public function testUpsertBatchOnPrimaryKey(): void | |
|
||
// get by id | ||
$row1 = $this->db->table('user') | ||
->getwhere(['id' => 1]) | ||
->getWhere(['id' => 1]) | ||
->getRow(); | ||
|
||
// get by id | ||
$row2 = $this->db->table('user') | ||
->getwhere(['id' => 2]) | ||
->getWhere(['id' => 2]) | ||
->getRow(); | ||
|
||
// get by id | ||
$row3 = $this->db->table('user') | ||
->getwhere(['id' => 3]) | ||
->getWhere(['id' => 3]) | ||
->getRow(); | ||
|
||
$this->assertSame('Upsert One On Id', $row1->name); | ||
|
@@ -553,17 +553,17 @@ public function testUpsertBatchOnNullAutoIncrement(): void | |
|
||
// get by id | ||
$row1 = $this->db->table('user') | ||
->getwhere(['email' => '[email protected]']) | ||
->getWhere(['email' => '[email protected]']) | ||
->getRow(); | ||
|
||
// get by id | ||
$row2 = $this->db->table('user') | ||
->getwhere(['email' => '[email protected]']) | ||
->getWhere(['email' => '[email protected]']) | ||
->getRow(); | ||
|
||
// get by id | ||
$row3 = $this->db->table('user') | ||
->getwhere(['email' => '[email protected]']) | ||
->getWhere(['email' => '[email protected]']) | ||
->getRow(); | ||
|
||
$this->assertSame('Null One', $row1->name); | ||
|
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
Oops, something went wrong.