]> BookStack Code Mirror - bookstack/blobdiff - tests/Entity/SearchOptionsTest.php
Search: Prevented negated terms filling in UI inputs
[bookstack] / tests / Entity / SearchOptionsTest.php
index 543badcef95b0cdd9eac0b839f8fb91431c0696f..ae0f1e56a9ecd6b7e513480b169743fca11c1d5c 100644 (file)
@@ -123,7 +123,7 @@ class SearchOptionsTest extends TestCase
 
         $options = SearchOptions::fromRequest($request);
         $this->assertCount(2, $options->tags->all());
-        $this->assertEquals('b=c', $options->tags->negated()[0]->value);
+        $this->assertEquals('b=c', $options->tags->negated()->all()[0]->value);
         $this->assertEquals('viewed_by_me', $options->filters->all()[0]->getKey());
         $this->assertTrue($options->filters->all()[0]->negated);
         $this->assertEquals('dino', $options->exacts->all()[0]->value);