Skip to content

Commit 9b9c235

Browse files
committed
Minor change to test
1 parent 2bd2cb0 commit 9b9c235

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/RowTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,18 +134,26 @@ public function testRemoveFieldName()
134134
{
135135
$this->fill();
136136

137+
$this->assertEquals(["field1" => [10, 20, 30], "field2" => 40], $this->object->toArray());
138+
137139
$this->object->removeField('field1');
138140
$this->assertEquals(null, $this->object->get('field1'));
139141
$this->assertEquals(40, $this->object->get('field2'));
142+
143+
$this->assertEquals(["field2" => 40], $this->object->toArray());
140144
}
141145

142146
public function testRemoveFieldName2()
143147
{
144148
$this->fill();
145149

150+
$this->assertEquals(["field1" => [10, 20, 30], "field2" => 40], $this->object->toArray());
151+
146152
$this->object->removeField('field2');
147153
$this->assertEquals(10, $this->object->get('field1'));
148154
$this->assertEquals(null, $this->object->get('field2'));
155+
156+
$this->assertEquals(["field1" => [10, 20, 30]], $this->object->toArray());
149157
}
150158

151159
public function testRemoveFieldNameValue()

0 commit comments

Comments
 (0)