Beispiel #1
0
 public function testUpdateItemInDatabase()
 {
     $rssItem = new RssItem('test.link.pl', 'tytul', '5000');
     DB::beginTransaction();
     $rssItem->insertIntoTable();
     $tmp = $rssItem->getArray();
     $rssItemDeleteItem = new RssItem($tmp['title'], $tmp['link'], '5000', $tmp['id_item']);
     $rssItemDeleteItem->updateDataInDatabase();
     $this->seeInDatabase('rss_item_for_channel', ['link' => 'tytul']);
     DB::rollBack();
 }