Example #1
0
 /**
  * @depends test_createUser
  */
 public function test_createCollection($User)
 {
     $Collection = new Collection();
     $Collection->name = "Test collection";
     $Collection->description = "lasdfasdfsafadf";
     $Collection->setAuthor($User)->commit();
     $New = new Collection();
     $New->name = "Test collection";
     $New->description = "lasdfasdfsafadf";
     $New->setAuthor($User)->commit();
     $this->assertFalse(!filter_var($Collection->id, FILTER_VALIDATE_INT));
     $New = new Collection($Collection->id);
     $New = new Collection($Collection->slug);
     $Collection->getArray();
     CollectionUtility::getCollections($User);
     return $Collection;
 }