public function testOption() { $this->viewFactory->shouldReceive('make')->withArgs(['fooScript', ['id' => 'fooBar', 'columns' => ['id' => 'id'], 'options' => ['fooBar' => 'fooBar', 'fooBar1' => ['fooBar']], 'callbacks' => [], 'endpoint' => '/']])->times(1)->andReturn($this->view); $this->dtv2->option('fooBar', 'fooBar'); $this->dtv2->option('fooBar1', ['fooBar']); $this->dtv2->script(); }