* Attempt to instantiate a LinkDB whereas the datastore is not writable
*
* @expectedException IOException
* Attempt to instantiate a LinkDB whereas the datastore is not writable
*
* @expectedException IOException
$checkDB->invokeArgs($linkDB, array());
$this->assertFileExists(self::$testDatastore);
$checkDB->invokeArgs($linkDB, array());
$this->assertFileExists(self::$testDatastore);
$datastoreSize = filesize(self::$testDatastore);
$this->assertGreaterThan(0, $datastoreSize);
$datastoreSize = filesize(self::$testDatastore);
$this->assertGreaterThan(0, $datastoreSize);
$checkDB->invokeArgs($linkDB, array());
// ensure the datastore is left unmodified
$checkDB->invokeArgs($linkDB, array());
// ensure the datastore is left unmodified
$link = self::$publicLinkDB->getLinkFromUrl('http://mediagoblin.org/');
$this->assertNotEquals(false, $link);
$link = self::$publicLinkDB->getLinkFromUrl('http://mediagoblin.org/');
$this->assertNotEquals(false, $link);
// The DB contains a link with `sTuff` and another one with `stuff` tag.
// They need to be grouped with the first case found (`sTuff`).
'sTuff' => 2,
// The DB contains a link with `sTuff` and another one with `stuff` tag.
// They need to be grouped with the first case found (`sTuff`).
'sTuff' => 2,