public function testInsertCulture() { $this->objCulture->setDefault(false); $this->objCulture->setIsoLang('es_ES'); $this->objCulture->save(); /* @var $obj Culture */ $obj = CulturePeer::retriveByPk('es_ES'); $test = $obj->getIsoLang(); $obj->delete(); $this->assertEquals('es_ES', $test); }
/** * * @param $isoLang * @return boollean */ public function hasCulture($isoLang) { $has = CulturePeer::hasCulture($isoLang); return $has; }