Skip to content

Commit

Permalink
[9.x] Improve test for set method in RepositoryClass (#43823)
Browse files Browse the repository at this point in the history
* [9.x] Improve test for set method in RepositoryClass

* [9.x] Improve test for set method in RepositoryClass

* [9.x] Improve test for set method in RepositoryClass

fix style
  • Loading branch information
moharami authored Aug 23, 2022
1 parent 53e20ba commit 3d068ab
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/Config/RepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,20 @@ public function testSetArray()
$this->repository->set([
'key1' => 'value1',
'key2' => 'value2',
'key3',
'key4' => [
'foo' => 'bar',
'bar' => [
'foo' => 'bar',
],
],
]);
$this->assertSame('value1', $this->repository->get('key1'));
$this->assertSame('value2', $this->repository->get('key2'));
$this->assertNull($this->repository->get('key3'));
$this->assertSame('bar', $this->repository->get('key4.foo'));
$this->assertSame('bar', $this->repository->get('key4.bar.foo'));
$this->assertNull($this->repository->get('key5'));
}

public function testPrepend()
Expand Down

0 comments on commit 3d068ab

Please sign in to comment.