Skip to content

Commit d20d72d

Browse files
Merge branch '6.x' into 7.x
2 parents eacc341 + c37f4d5 commit d20d72d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/Support/SupportCollectionTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,10 +400,13 @@ public function testForgetSingleKey()
400400
$c = new Collection(['foo', 'bar']);
401401
$c = $c->forget(0)->all();
402402
$this->assertFalse(isset($c['foo']));
403+
$this->assertFalse(isset($c[0]));
404+
$this->assertTrue(isset($c[1]));
403405

404406
$c = new Collection(['foo' => 'bar', 'baz' => 'qux']);
405407
$c = $c->forget('foo')->all();
406408
$this->assertFalse(isset($c['foo']));
409+
$this->assertTrue(isset($c['baz']));
407410
}
408411

409412
public function testForgetArrayOfKeys()

0 commit comments

Comments
 (0)