findLatestWithoutSecurity() публичный Метод

 public function testFindLatestWithoutSecurity()
 {
     $this->createFile('Old Title 1', 'New Title 1');
     $this->createFile('Old Title 2', 'New Title 2');
     $this->em->flush();
     $titles = array_map(function (FileVersionMeta $fileVersionMeta) {
         return $fileVersionMeta->getTitle();
     }, $this->fileVersionMetaRepository->findLatestWithoutSecurity());
     $this->assertContains('New Title 1', $titles);
     $this->assertContains('New Title 2', $titles);
     $this->assertNotContains('Old Title 1', $titles);
     $this->assertNotContains('Old Title 2', $titles);
 }