X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tests%2FUpdater%2FUpdaterTest.php;h=a29d90677dc0d7b611fd078b43e03e841f41bed2;hb=c01bd08eafe2bf52b02c3f285c7543b8d559dce1;hp=84b82350390fbc207b14d483a53f6fe41b610096;hpb=21979ff11ceee0042642ac17147858a4155d54c5;p=github%2Fshaarli%2FShaarli.git diff --git a/tests/Updater/UpdaterTest.php b/tests/Updater/UpdaterTest.php index 84b82350..a29d9067 100644 --- a/tests/Updater/UpdaterTest.php +++ b/tests/Updater/UpdaterTest.php @@ -236,10 +236,9 @@ class UpdaterTest extends PHPUnit_Framework_TestCase $refDB = new ReferenceLinkDB(); $refDB->write(self::$testDatastore); $linkDB = new LinkDB(self::$testDatastore, true, false); - $this->assertEmpty($linkDB->filter(LinkFilter::$FILTER_TAG, 'exclude')); + $this->assertEmpty($linkDB->filterSearch(array('searchtags' => 'exclude'))); $updater = new Updater(array(), self::$configFields, $linkDB, true); $updater->updateMethodRenameDashTags(); - var_dump($linkDB->filter(LinkFilter::$FILTER_TAG, 'exclude')); - $this->assertNotEmpty($linkDB->filter(LinkFilter::$FILTER_TAG, 'exclude')); + $this->assertNotEmpty($linkDB->filterSearch(array('searchtags' => 'exclude'))); } }