@@ 141-150 (lines=10) @@ | ||
138 | /** |
|
139 | * Test get. |
|
140 | */ |
|
141 | public function testGet() |
|
142 | { |
|
143 | $this |
|
144 | ->given($repository = $this->randomRepository()) |
|
145 | ->and($unique = $this->uniqueValue()) |
|
146 | ->when($repository->persist($unique)) |
|
147 | ->then() |
|
148 | ->object($repository->get($unique->id())) |
|
149 | ->isEqualTo($unique); |
|
150 | } |
|
151 | ||
152 | /** |
|
153 | * Test persist. |
@@ 140-149 (lines=10) @@ | ||
137 | /** |
|
138 | * Test get. |
|
139 | */ |
|
140 | public function testGet() |
|
141 | { |
|
142 | $this |
|
143 | ->given($repository = $this->randomRepository()) |
|
144 | ->and($unique = $this->uniqueValue()) |
|
145 | ->when($repository->persist($unique)) |
|
146 | ->then() |
|
147 | ->object($repository->get($unique->id())) |
|
148 | ->isEqualTo($unique); |
|
149 | } |
|
150 | ||
151 | /** |
|
152 | * Test persist. |