public function testHeaders() { $this->viewFactory->shouldReceive('make')->withArgs(['fooTable', ['columns' => ['id' => 'id'], 'showHeaders' => true, 'id' => 'fooBar', 'endpoint' => '/']])->times(1)->andReturn($this->view); $this->dtv2->headers(); $this->dtv2->table(); }