public function testPut()
 {
     $incoming = new Incoming();
     $incoming->setId('1');
     $incoming->setTitle('News test');
     $incoming->setSubtitle('subtitle');
     $incoming->setContent('une news');
     $incoming->setPostDate('2012-12-14 18:07:27');
     $incoming->setIdUser(1);
     $incomingMapper = new IncomingMapper();
     $incomingMapper->setId(1);
     $incomingMapper->updateIncoming($incoming);
     $this->assertEquals($incoming, $incomingMapper->selectIncoming());
 }
Example #2
0
 public function testGetSetPostDate()
 {
     $incoming = new Incoming();
     $incoming->setPostDate('2012-12-01 12:00:00');
     $this->assertEquals('2012-12-01 12:00:00', $incoming->getPostDate());
 }