OpenSkill\Datatable\Views\DatatableViewTest::setUp PHP Метод

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

public setUp ( )
    public function setUp()
    {
        $this->viewFactory = \Mockery::mock('Illuminate\\Contracts\\View\\Factory');
        $this->configRepository = \Mockery::mock('Illuminate\\Contracts\\Config\\Repository');
        $this->configRepository->shouldReceive('get')->andReturn("fooBar");
        $this->configRepository->shouldReceive('render')->andReturn("fooBar");
        $this->view = \Mockery::mock('Illuminate\\Contracts\\View\\View');
        $this->view->shouldReceive('render')->andReturn('fooBar');
        $this->dtv = new DatatableView("fooTable", "fooScript", $this->viewFactory, $this->configRepository, []);
        $this->column = ColumnConfigurationBuilder::create()->name('id')->build();
        $this->dtv2 = new DatatableView("fooTable", "fooScript", $this->viewFactory, $this->configRepository, [$this->column]);
    }