option() публичный Метод

public option ( string $name, mixed $options )
$name string the name of the option
$options mixed an array of options
Пример #1
0
 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();
 }