public function addViews(array $views) { if (!empty($views)) { $this->views += $views; } return $this; }
/** * Test * * @return void */ public function testSave() { $this->object->addViews(array($this->view->getId(), 0)); $this->object->setDependencies(array($this->object->getId())); $this->assertInternalType('integer', (int) $this->object->save()); }