We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6027221 commit a49d583Copy full SHA for a49d583
tests/ORM/RecordTest.php
@@ -135,6 +135,15 @@ public function testRemoveRelationshipValueForClassMultipleFields(): void
135
$this->assertArrayHasKey('Title', $fields);
136
}
137
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
147
public function testRemoveRelationshipValueForClassReturnsSelf(): void
148
{
149
$record = Record::create(1);
0 commit comments