Code Duplication    Length = 11-11 lines in 2 locations

tests/Doctrine/Tests/ORM/Cache/Persister/Entity/AbstractEntityPersisterTest.php 2 locations

@@ 134-144 (lines=11) @@
131
        $this->assertInstanceOf(CachedEntityPersister::class, $persister);
132
    }
133
134
    public function testInvokeAddInsert()
135
    {
136
        $persister = $this->createPersisterDefault();
137
        $entity    = new Country("Foo");
138
139
        $this->entityPersister->expects($this->once())
140
            ->method('addInsert')
141
            ->with($this->equalTo($entity));
142
143
        $this->assertNull($persister->addInsert($entity));
144
    }
145
146
    public function testInvokeGetInserts()
147
    {
@@ 443-453 (lines=11) @@
440
        $this->assertNull($persister->lock($identifier, 1));
441
    }
442
443
    public function testInvokeExists()
444
    {
445
        $entity    = new Country("Foo");
446
        $persister = $this->createPersisterDefault();
447
448
        $this->entityPersister->expects($this->once())
449
            ->method('exists')
450
            ->with($this->equalTo($entity), $this->equalTo(null));
451
452
        $this->assertNull($persister->exists($entity));
453
    }
454
}
455