public function testRetrieveStickyness() { $input = json_decode('{ "afs:t": "FacetTree", "node": [ { "key": "false", "labels": [ { "label": "BAD" } ], "items": 67 } ], "layout": "TREE", "type": "BOOL", "id": "FOO", "labels": [ { "label": "String facet" } ], "sticky": "true" }'); $config = new AfsHelperConfiguration(); $helper = new AfsFacetHelper($input, new AfsQuery(), $config); $this->assertEquals($helper->get_label(), "String facet"); $this->assertEquals('FOO', $helper->get_id()); $this->assertEquals(AfsFacetType::BOOL_TYPE, $helper->get_type()); $this->assertEquals(AfsFacetLayout::TREE, $helper->get_layout()); $this->assertEquals(true, $helper->is_sticky()); }