Пример #1
0
 /**
  * @covers sBasket::sGetNotes
  * @depends testsAddNote
  */
 public function testsGetNotes($input)
 {
     list($randomArticle, $cookieId) = $input;
     // Test with no id in cookie
     $this->assertEquals(array(), $this->module->sGetNotes());
     $_COOKIE["sUniqueID"] = $cookieId;
     $result = $this->module->sGetNotes();
     $this->assertEquals($randomArticle['articleID'], $result[0]['articleID']);
     return array($randomArticle, $cookieId);
 }