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 testGetSetSubtitle()
 {
     $incoming = new Incoming();
     $incoming->setSubtitle('subtitle');
     $this->assertEquals('subtitle', $incoming->getSubtitle());
 }