]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - tests/bookmark/BookmarkArrayTest.php
Merge tag 'v0.12.1' into latest
[github/shaarli/Shaarli.git] / tests / bookmark / BookmarkArrayTest.php
index ebed9bfcaf2d071faa25e8e05e6e404d1f0f5d38..1953078cd985a0c75aaa39a6464b7e833d8d2912 100644 (file)
@@ -90,19 +90,6 @@ class BookmarkArrayTest extends TestCase
         $array['nope'] = $bookmark;
     }
 
-    /**
-     * Test adding a bad entry: invalid ID type
-     */
-    public function testArrayAccessAddBadEntryIdType()
-    {
-        $this->expectException(\Shaarli\Bookmark\Exception\InvalidBookmarkException::class);
-
-        $array = new BookmarkArray();
-        $bookmark = (new Bookmark())->setId('nope');
-        $bookmark->validate();
-        $array[] = $bookmark;
-    }
-
     /**
      * Test adding a bad entry: ID/offset not consistent
      */