@@ 96-105 (lines=10) @@ | ||
93 | ||
94 | $rsm->addRootEntityFromClassMetadata(Country::class, 'c'); |
|
95 | ||
96 | for ($i = 0; $i < 4; $i++) { |
|
97 | $name = "Country $i"; |
|
98 | $entity = new Country($name); |
|
99 | ||
100 | $entity->setId($i); |
|
101 | ||
102 | $result[] = $entity; |
|
103 | ||
104 | $uow->registerManaged($entity, ['id' => $entity->getId()], ['name' => $entity->getName()]); |
|
105 | } |
|
106 | ||
107 | self::assertTrue($this->queryCache->put($key, $rsm, $result)); |
|
108 | self::assertArrayHasKey('put', $this->region->calls); |
|
@@ 361-370 (lines=10) @@ | ||
358 | ||
359 | $rsm->addRootEntityFromClassMetadata(Country::class, 'c'); |
|
360 | ||
361 | for ($i = 0; $i < 4; $i++) { |
|
362 | $name = "Country $i"; |
|
363 | $entity = new Country($name); |
|
364 | ||
365 | $entity->setId($i); |
|
366 | ||
367 | $result[] = $entity; |
|
368 | ||
369 | $uow->registerManaged($entity, ['id' => $entity->getId()], ['name' => $entity->getName()]); |
|
370 | } |
|
371 | ||
372 | $this->region->addReturn('put', false); |
|
373 | ||
@@ 468-477 (lines=10) @@ | ||
465 | ||
466 | $rsm->addRootEntityFromClassMetadata(Country::class, 'c'); |
|
467 | ||
468 | for ($i = 0; $i < 4; $i++) { |
|
469 | $name = "Country $i"; |
|
470 | $entity = new Country($name); |
|
471 | ||
472 | $entity->setId($i); |
|
473 | ||
474 | $result[] = $entity; |
|
475 | ||
476 | $uow->registerManaged($entity, ['id' => $entity->getId()], ['name' => $entity->getName()]); |
|
477 | } |
|
478 | ||
479 | self::assertFalse($this->queryCache->put($key, $rsm, $result)); |
|
480 | } |