diff --git a/tests/Tests/ModelFilterMockTest.php b/tests/Tests/ModelFilterMockTest.php index 818fdebe..8e3beb21 100644 --- a/tests/Tests/ModelFilterMockTest.php +++ b/tests/Tests/ModelFilterMockTest.php @@ -40,7 +40,6 @@ public function setUp(): void { parent::setUp(); $this->builder = m::mock(Builder::class); - } protected function getMockModel() @@ -64,12 +63,10 @@ protected function makeBuilderWithModel($obj = null) { if (!empty($obj)) { $this->builder->shouldReceive('getModel')->andReturn($obj); - } else { $this->userModel = $this->getMockModel(); $this->builder->shouldReceive('getModel')->andReturn($this->userModel); - } } @@ -189,7 +186,6 @@ public function testSetWhiteList() $this->model = $this->model->apply($this->builder, 'users'); $this->assertEquals($this->model, $this->builder); - }