public function testSettingDateColumn() { $value = new \DateTime("2017-02-01"); $this->pulse->getDateColumn("due_date")->updateValue($value); $pulse = new Pulse($this->pulse->getId()); $this->assertEquals($value, $pulse->getDateColumn("due_date")->getValue()); $this->assertEquals($value, $this->pulse->getDateColumn("due_date")->getValue()); }
/** * @depends testCreateNote * * @param PulseNote $note * * @return PulseNote */ public function testNoteInfo($note) { $this->assertEquals($this->pulse->getId(), $note->getPulseId()); $this->assertEquals($this->title, $note->getTitle()); $this->assertEquals($this->content, $note->getContent()); $this->assertEquals("rich_text", $note->getType()); $this->assertEquals("owners", $note->getPermissions()); $this->assertInstanceOf('\\DateTime', $note->getCreatedAt()); $this->assertInstanceOf('\\DateTime', $note->getUpdatedAt()); return $note; }
public function testGetId() { $this->assertIsInt($this->pulse->getId()); $this->assertEquals($this->id, $this->pulse->getId()); }