X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=tests%2FUpdater%2FUpdaterTest.php;h=a29d90677dc0d7b611fd078b43e03e841f41bed2;hb=1a84bf1e2bc45787d9cfa81fa427a11a3aba623a;hp=84b82350390fbc207b14d483a53f6fe41b610096;hpb=1e7331126d81a5759ab91c221f7e0f164aeebfb5;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'))); } }