Example #1
0
 public function testBookmarksCanBeAdded()
 {
     $mail = new MailAddress("*****@*****.**");
     $bookmark = $this->getBookmarkMock();
     $collection = new BookmarkEntryCollection();
     $user = new User($mail, $collection);
     $user->addBookmark($bookmark);
     $this->assertEquals($bookmark, iterator_to_array($user->getBookmarks()->getIterator())[0]->getBookmark());
 }