Pastoid

Habari add vocabulary test

The page you are looking at now is at this URL: http://pastoid.com/awv

This paste was last updated on April 25, 2009 at 11:18 pm.

Pasted Coderaw

  public function test_add_vocabulary()
  {
    $vocab_count = count(Vocabulary::list());
    $v = new Vocabulary($this->vocab_name, $this->vocab_desc, Vocabulary::feature_mask(true, false, false, false);
    $v->insert();
 
    $this->assertEquals($vocab_count + 1, count(Vocabulary::list()));
    $this->assertTrue(in_array($this->vocab_name, Vocabulary::list()));
  }
 
 

Toggle wordwrap

Referring DomainHits
Unknown Referer 127
pastoid.com 6
search.live.com 2
Is this paste spam?
<Hide