public function isPublished() { return $this->getStatus() == self::STATUS_ENABLE; }
/** * Test * * @return void */ public function testIsPublished() { $this->object->setStatus(Model::STATUS_ENABLE); $this->assertTrue($this->object->isPublished()); }