Skip to content

Commit a49d583

Browse files
committed
Update output comparisons
1 parent 6027221 commit a49d583

File tree

2 files changed

+197
-112
lines changed

2 files changed

+197
-112
lines changed

tests/ORM/RecordTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,15 @@ public function testRemoveRelationshipValueForClassMultipleFields(): void
135135
$this->assertArrayHasKey('Title', $fields);
136136
}
137137

138+
public function testAddFieldValueWithArray(): void
139+
{
140+
$record = Record::create(1);
141+
$tags = ['=>App\Model\Tag.1', '=>App\Model\Tag.2'];
142+
$record->addFieldValue('Tags', $tags);
143+
144+
$this->assertSame($tags, $record->getFields()['Tags']);
145+
}
146+
138147
public function testRemoveRelationshipValueForClassReturnsSelf(): void
139148
{
140149
$record = Record::create(1);

0 commit comments

Comments
 (0)