| @@ 239-255 (lines=17) @@ | ||
| 236 | $this->assertEquals('/test/article2', $article->objectReferences[1]->id); |
|
| 237 | } |
|
| 238 | ||
| 239 | private function createArticleSlideshow() |
|
| 240 | { |
|
| 241 | $article = new Article(); |
|
| 242 | $article->id = '/test/article'; |
|
| 243 | ||
| 244 | $image1 = $this->createImage('/path/to/image1', 100, 200, 'image/jpeg'); |
|
| 245 | $image2 = $this->createImage('/path/to/image2', 100, 200, 'image/jpeg'); |
|
| 246 | $image3 = $this->createImage('/path/to/image3', 100, 200, 'image/jpeg'); |
|
| 247 | ||
| 248 | $article->slideshow = [ |
|
| 249 | $image1, |
|
| 250 | $image2, |
|
| 251 | $image3, |
|
| 252 | ]; |
|
| 253 | ||
| 254 | return $article; |
|
| 255 | } |
|
| 256 | } |
|
| 257 | ||
| @@ 103-119 (lines=17) @@ | ||
| 100 | $this->documentManager->find(null, '/test/article'); |
|
| 101 | } |
|
| 102 | ||
| 103 | private function createArticleSlideshow() |
|
| 104 | { |
|
| 105 | $article = new Article(); |
|
| 106 | $article->id = '/test/article'; |
|
| 107 | ||
| 108 | $image1 = $this->createImage('/path/to/image1', 100, 200, 'image/jpeg'); |
|
| 109 | $image2 = $this->createImage('/path/to/image2', 100, 200, 'image/jpeg'); |
|
| 110 | $image3 = $this->createImage('/path/to/image3', 100, 200, 'image/jpeg'); |
|
| 111 | ||
| 112 | $article->slideshow = [ |
|
| 113 | $image1, |
|
| 114 | $image2, |
|
| 115 | $image3, |
|
| 116 | ]; |
|
| 117 | ||
| 118 | return $article; |
|
| 119 | } |
|
| 120 | } |
|
| 121 | ||