示例#1
0
 /**
  * Set up before class
  *
  * @return void
  */
 public static function setUpBeforeClass()
 {
     Zend_Session::$_unitTestEnabled = true;
     parent::setUpBeforeClass();
     $tool = new SchemaTool(self::$entityManager);
     $tool->createSchema(array(self::$entityManager->getClassMetadata('Rexmac\\Zyndax\\Entity\\Session')));
 }
示例#2
0
 public function tearDown()
 {
     self::$entityManager->createQuery('DELETE FROM Rexmac\\Zyndax\\Doctrine\\Entity\\TestEntity')->execute();
     $entities = self::$entityManager->createQuery('SELECT e FROM Rexmac\\Zyndax\\Doctrine\\Entity\\TestEntity e')->execute();
     $this->assertEquals(0, count($entities));
     $this->adapter = null;
     parent::tearDown();
 }
示例#3
0
 /**
  * Set up before class
  *
  * @return void
  */
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     // Add IP data type mapping
     self::$entityManager->getConnection()->getDatabasePlatform()->registerDoctrineTypeMapping('IP', 'ip');
     $tool = new SchemaTool(self::$entityManager);
     $tool->createSchema(array(self::getClassMetadata('Rexmac\\Zyndax\\Entity\\AclPermission'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\AclResource'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\AclRole'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\Session'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\SocialNetwork'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\TimeZone'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\User'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\UserEditEvent'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\UserEmailVerification'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\UserLoginAsEvent'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\UserLoginEvent'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\UserPasswordResetToken'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\UserProfile'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\UserSocialNetworkIdentity')));
 }
示例#4
0
 /**
  * Set up before class.
  *
  * @return void
  */
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     $tool = new SchemaTool(self::$entityManager);
     $tool->createSchema(array(self::getClassMetadata('Rexmac\\Zyndax\\Entity\\AclPermission'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\AclResource'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\AclRole'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\User'), self::getClassMetadata('Rexmac\\Zyndax\\Entity\\UserProfile')));
 }
示例#5
0
 public function setUp()
 {
     parent::setUp();
 }