/**
  * Test adding a new friend and delete it
  *
  * @return void
  */
 public function testAddFriendAndDelete()
 {
     // Create a sample friend
     $f = new WpHerissonFriends();
     $f->alias = $this->sampleName;
     $f->setUrl($this->sampleUrl);
     $f->save();
     // Check it's saved in the DB
     $friends = WpHerissonFriendsTable::getWhere('url=?', array($this->sampleUrl));
     $this->assertEquals(1, sizeof($friends));
     // Delete it and verify it's not there anymore
     foreach ($friends as $f) {
         $f->delete();
     }
     $friends = WpHerissonFriendsTable::getWhere('url=?', array($this->sampleUrl));
     $this->assertEquals(0, sizeof($friends));
 }