public function testPopulate() { $category = new Category(); $category->populate(array('id' => 5, 'position' => 1, 'name' => 'Games', 'description' => 'Blogs relating to games')); $this->assertEquals(5, $category->id); $this->assertEquals(1, $category->position); $this->assertEquals('Games', $category->name); $this->assertEquals('Blogs relating to games', $category->description); }
public function populate(array $options = NULL) { $this->__load(); return parent::populate($options); }