Skip to content

Commit

Permalink
Minor change to test
Browse files Browse the repository at this point in the history
  • Loading branch information
byjg committed May 28, 2024
1 parent 2bd2cb0 commit 9b9c235
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/RowTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,18 +134,26 @@ public function testRemoveFieldName()
{
$this->fill();

$this->assertEquals(["field1" => [10, 20, 30], "field2" => 40], $this->object->toArray());

$this->object->removeField('field1');
$this->assertEquals(null, $this->object->get('field1'));
$this->assertEquals(40, $this->object->get('field2'));

$this->assertEquals(["field2" => 40], $this->object->toArray());
}

public function testRemoveFieldName2()
{
$this->fill();

$this->assertEquals(["field1" => [10, 20, 30], "field2" => 40], $this->object->toArray());

$this->object->removeField('field2');
$this->assertEquals(10, $this->object->get('field1'));
$this->assertEquals(null, $this->object->get('field2'));

$this->assertEquals(["field1" => [10, 20, 30]], $this->object->toArray());
}

public function testRemoveFieldNameValue()
Expand Down

0 comments on commit 9b9c235

Please sign in to comment.