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