-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename
properties()
to propertyNames()
, values
to `propertyValu…
…es()`
- Loading branch information
Showing
10 changed files
with
47 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2128,7 +2128,7 @@ public function testPropertyValues(): void | |
|
||
$customer = new ActiveQuery(Customer::class); | ||
|
||
$values = $customer->findOne(1)->values(); | ||
$values = $customer->findOne(1)->propertyValues(); | ||
|
||
$this->assertEquals($expectedValues, $values); | ||
} | ||
|
@@ -2139,7 +2139,7 @@ public function testPropertyValuesOnly(): void | |
|
||
$customer = new ActiveQuery(Customer::class); | ||
|
||
$values = $customer->findOne(1)->values(['id', 'email', 'name']); | ||
$values = $customer->findOne(1)->propertyValues(['id', 'email', 'name']); | ||
|
||
$this->assertEquals(['id' => 1, 'email' => '[email protected]', 'name' => 'user1'], $values); | ||
} | ||
|
@@ -2150,7 +2150,7 @@ public function testPropertyValuesExcept(): void | |
|
||
$customer = new ActiveQuery(Customer::class); | ||
|
||
$values = $customer->findOne(1)->values(null, ['status', 'bool_status', 'profile_id']); | ||
$values = $customer->findOne(1)->propertyValues(null, ['status', 'bool_status', 'profile_id']); | ||
|
||
$this->assertEquals( | ||
['id' => 1, 'email' => '[email protected]', 'name' => 'user1', 'address' => 'address1'], | ||
|
@@ -2166,7 +2166,7 @@ public function testGetOldValue(): void | |
|
||
$query = $customer->findOne(1); | ||
$this->assertEquals('user1', $query->oldValue('name')); | ||
$this->assertEquals($query->values(), $query->oldValues()); | ||
$this->assertEquals($query->propertyValues(), $query->oldValues()); | ||
|
||
$query->set('name', 'samdark'); | ||
$this->assertEquals('samdark', $query->get('name')); | ||
|
@@ -2191,17 +2191,17 @@ public function testGetOldValues(): void | |
$customer = new ActiveQuery(Customer::class); | ||
|
||
$query = $customer->findOne(1); | ||
$this->assertEquals($expectedValues, $query->values()); | ||
$this->assertEquals($query->values(), $query->oldValues()); | ||
$this->assertEquals($expectedValues, $query->propertyValues()); | ||
$this->assertEquals($query->propertyValues(), $query->oldValues()); | ||
|
||
$query->set('name', 'samdark'); | ||
|
||
$expectedNewValues = $expectedValues; | ||
$expectedNewValues['name'] = 'samdark'; | ||
|
||
$this->assertEquals($expectedNewValues, $query->values()); | ||
$this->assertEquals($expectedNewValues, $query->propertyValues()); | ||
$this->assertEquals($expectedValues, $query->oldValues()); | ||
$this->assertNotEquals($query->values(), $query->oldValues()); | ||
$this->assertNotEquals($query->propertyValues(), $query->oldValues()); | ||
} | ||
|
||
public function testIsPropertyChanged(): void | ||
|