@@ 121-129 (lines=9) @@ | ||
118 | $this->assertInstanceOf(Image::class, $image); |
|
119 | } |
|
120 | ||
121 | public function testScalarCollection() |
|
122 | { |
|
123 | $article = new Article(); |
|
124 | $article->id = '/test/article'; |
|
125 | $article->paragraphs = ['one', 'two', 'three']; |
|
126 | $article = $this->persistAndReloadArticle($article); |
|
127 | ||
128 | $this->assertSame(['one', 'two', 'three'], $article->paragraphs); |
|
129 | } |
|
130 | ||
131 | public function testBoolean() |
|
132 | { |
@@ 237-247 (lines=11) @@ | ||
234 | $this->assertEquals('/test/article2', $article->objectReferences[1]->id); |
|
235 | } |
|
236 | ||
237 | public function testScalarCollection() |
|
238 | { |
|
239 | $this->initScalarCollectionArticle(); |
|
240 | ||
241 | $article = new Article(); |
|
242 | $article->id = '/test/article'; |
|
243 | $article->paragraphs = ['one', 'two', 'three']; |
|
244 | $article = $this->persistAndReloadArticle($article); |
|
245 | ||
246 | $this->assertSame(['one', 'two', 'three'], $article->paragraphs); |
|
247 | } |
|
248 | ||
249 | public function testIntegerCollection() |
|
250 | { |
|
@@ 249-259 (lines=11) @@ | ||
246 | $this->assertSame(['one', 'two', 'three'], $article->paragraphs); |
|
247 | } |
|
248 | ||
249 | public function testIntegerCollection() |
|
250 | { |
|
251 | $this->initScalarCollectionArticle(); |
|
252 | ||
253 | $article = new Article(); |
|
254 | $article->id = '/test/article'; |
|
255 | $article->numbers = ['12', '13', '14']; |
|
256 | $article = $this->persistAndReloadArticle($article); |
|
257 | ||
258 | $this->assertSame([12, 13, 14], $article->numbers); |
|
259 | } |
|
260 | ||
261 | private function persistAndReloadArticle(Article $article) |
|
262 | { |