Пример #1
0
 public function testUpdate()
 {
     $testEntity = AclPermissionTest::createTestAclPermission();
     self::$entityManager->persist($testEntity);
     self::$entityManager->flush();
     $this->assertNotEquals('fubar', $testEntity->getName());
     $testEntity->setName('fubar');
     AclPermissionService::update();
     $entities = self::$entityManager->createQuery('SELECT e FROM Rexmac\\Zyndax\\Entity\\AclPermission e')->execute();
     $this->assertEquals('fubar', $entities[0]->getName());
 }