Lines Matching full:options
13 $options = new FeedCreatorOptions(['feed_mode' => 'recent']);
14 $this->assertNotNull($options->getCacheKey());
19 $options = new FeedCreatorOptions(['feed_mode' => 'list', 'namespace' => 'wiki']);
20 $this->assertNull($options->getCacheKey());
25 $options = new FeedCreatorOptions(['feed_mode' => 'search', 'search_query' => 'test']);
26 $this->assertNull($options->getCacheKey());
31 $options = new FeedCreatorOptions(['feed_mode' => 'foobar']);
32 $this->assertNull($options->getCacheKey());
91 $options = new FeedCreatorOptions(['items' => 0]);
92 $this->assertSame(1, $options->options['items']);
98 $options = new FeedCreatorOptions(['items' => 999999]);
99 $this->assertSame($conf['recent'] * 5, $options->options['items']);
104 $options = new FeedCreatorOptions(['items' => 10]);
105 $this->assertSame(10, $options->options['items']);