/**
  * Testing Utilities::isValidEmail()
  *
  * @return null
  */
 public function testIsValidEmail()
 {
     $oUtils = new Utilities();
     $this->assertFalse($oUtils->isValidEmail("admin"));
     $this->assertTrue($oUtils->isValidEmail("*****@*****.**"));
 }
Exemple #2
0
 /**
  * Adds config value if shop info should be set.
  *
  * @param Utilities $utilities  Setup utilities
  * @param string    $baseShopId Shop id
  * @param array     $parameters Parameters
  * @param Conf      $configKey  Config key loader
  * @param Session   $session    Setup session manager
  */
 protected function addConfigValueIfShopInfoShouldBeSent($utilities, $baseShopId, $parameters, $configKey, $session)
 {
     $blSendShopDataToOxid = isset($parameters["blSendShopDataToOxid"]) ? $parameters["blSendShopDataToOxid"] : $session->getSessionParam('blSendShopDataToOxid');
     $sID = $utilities->generateUid();
     $this->execSql("insert into oxconfig (oxid, oxshopid, oxvarname, oxvartype, oxvarvalue)\n                             values('{$sID}', '{$baseShopId}', 'blSendShopDataToOxid', 'bool', ENCODE( '{$blSendShopDataToOxid}', '" . $configKey->sConfigKey . "'))");
 }