Skip to content

Commit

Permalink
style(data-get-tests): remove extra spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jwjenkin committed Jan 2, 2025
1 parent 18580bc commit 067d36f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/Support/SupportHelpersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -414,22 +414,22 @@ public function testDataGetEscapedSegmentKeys()
public function testDataGetStar()
{
$data = ['foo' => 'bar'];
$this->assertEquals([ 'bar' ], data_get($data, '*'));
$this->assertEquals(['bar'], data_get($data, '*'));

$data = collect(['foo' => 'bar']);
$this->assertEquals([ 'bar' ], data_get($data, '*'));
$this->assertEquals(['bar'], data_get($data, '*'));
}

public function testDataGetNullKey()
{
$data = ['foo' => 'bar'];

$this->assertEquals([ 'foo' => 'bar' ], data_get($data, null));
$this->assertEquals([ 'foo' => 'bar' ], data_get($data, null, '42'));
$this->assertEquals([ 'foo' => 'bar' ], data_get($data, [null]));
$this->assertEquals(['foo' => 'bar'], data_get($data, null));
$this->assertEquals(['foo' => 'bar'], data_get($data, null, '42'));
$this->assertEquals(['foo' => 'bar'], data_get($data, [null]));

$data = ['foo' => 'bar', 'baz' => 42];
$this->assertEquals([ 'foo' => 'bar', 'baz' => 42 ], data_get($data, [null, 'foo']));
$this->assertEquals(['foo' => 'bar', 'baz' => 42], data_get($data, [null, 'foo']));
}

public function testDataFill()
Expand Down

0 comments on commit 067d36f

Please sign in to comment.