Changeset 1323


Ignore:
Timestamp:
Sep 5, 2010, 2:07:20 PM (10 years ago)
Author:
teymour
Message:

Append pour le fichier de commande

Location:
cpc/trunk/project
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/lib/model/solr/SolrCommands.class.php

    r1319 r1323  
    2020    sem_acquire(self::getSemaphore());
    2121    if (! self::$file) {
    22       self::$file = fopen(self::getFileCommands(), 'w');
     22      self::$file = fopen(self::getFileCommands(), 'a+');
    2323    }
    2424    $str = $status.' : '.json_encode($json)."\n";
  • cpc/trunk/project/test/unit/solrableTest.php

    r1316 r1323  
    5353$q->ministere = "Ministere de la crise et du déficit";
    5454$q->save();
     55
     56$i = Doctrine::getTable('Intervention')->find(392980);
     57$i->save();
     58
    5559$s->updateFromCommands();
    5660$id = "QuestionEcrite/".$q->id;
     
    5963$a = $s->search("régionales id:$id");
    6064$t->is($a['response']['docs'][0]['id'], $id, "La question est trouvable");
    61 
    6265
    6366$a = Doctrine::getTable('Amendement')->find(3);
Note: See TracChangeset for help on using the changeset viewer.