public function testGetSetId() { $selectId = 'testId'; $this->assertNull($this->select->getId()); $this->select->setId($selectId); $this->assertEquals($selectId, $this->select->getId()); }
public function testVerificaSeOsDadosForamInseridos() { $select = new Select(); $select->setId("selectCat"); $select->setName("categoria"); $select->setClass("form-control"); $select->setProtected("protected"); $select->setLabel("Categoria"); $select->setAlert("Erro no field."); $this->assertEquals("selectCat", $select->getId()); $this->assertEquals("categoria", $select->getName()); $this->assertEquals("form-control", $select->getClass()); $this->assertEquals("protected", $select->getProtected()); $this->assertEquals("Categoria", $select->getLabel()); $this->assertEquals("Erro no field.", $select->getAlert()); }