public function setUp() { parent::setUp(); $this->attributes = Factory::agent(['id' => 1]); $this->app->instance('Agent', $this->mock); }