OpenSkill\Datatable\Views\DatatableViewTest::testConstructWithColumns PHP 메소드

testConstructWithColumns() 공개 메소드

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