public function setUp() { parent::setUp(); $this->excel = new App\Droit\Generate\Excel\ExcelGenerator(); $user = App\Droit\User\Entities\User::find(1); $this->actingAs($user); }
public function setUp() { parent::setUp(); $this->author = Mockery::mock('App\\Droit\\Author\\Repo\\AuthorInterface'); $this->app->instance('App\\Droit\\Author\\Repo\\AuthorInterface', $this->author); $user = App\Droit\User\Entities\User::find(1); $this->be($user); }
public function setUp() { parent::setUp(); $this->mock = Mockery::mock('App\\Droit\\Inscription\\Repo\\InscriptionInterface'); $this->app->instance('App\\Droit\\Inscription\\Repo\\InscriptionInterface', $this->mock); $this->groupe = Mockery::mock('App\\Droit\\Inscription\\Repo\\GroupeInterface'); $this->app->instance('App\\Droit\\Inscription\\Repo\\GroupeInterface', $this->groupe); $this->worker = new App\Droit\Inscription\Worker\InscriptionWorker(); $user = App\Droit\User\Entities\User::find(1); $this->actingAs($user); }
public function setUp() { parent::setUp(); $this->product = Mockery::mock('App\\Droit\\Shop\\Product\\Repo\\ProductInterface'); $this->app->instance('App\\Droit\\Shop\\Product\\Repo\\ProductInterface', $this->product); $this->coupon = Mockery::mock('App\\Droit\\Shop\\Coupon\\Repo\\CouponInterface'); $this->app->instance('App\\Droit\\Shop\\Coupon\\Repo\\CouponInterface', $this->coupon); $this->helper = Mockery::mock('App\\Droit\\Helper\\Helper'); $user = App\Droit\User\Entities\User::find(1); $this->be($user); }
public function setUp() { parent::setUp(); $this->user = Mockery::mock('App\\Droit\\User\\Repo\\UserInterface'); $this->app->instance('App\\Droit\\User\\Repo\\UserInterface', $this->user); $this->order = Mockery::mock('App\\Droit\\Shop\\Order\\Repo\\OrderInterface'); $this->app->instance('App\\Droit\\Shop\\Order\\Repo\\OrderInterface', $this->order); $this->cart = Mockery::mock('App\\Droit\\Shop\\Cart\\Repo\\CartInterface'); $this->app->instance('App\\Droit\\Shop\\Cart\\Repo\\CartInterface', $this->cart); $this->product = Mockery::mock('App\\Droit\\Shop\\Product\\Repo\\ProductInterface'); $this->app->instance('App\\Droit\\Shop\\Product\\Repo\\ProductInterface', $this->product); $user = App\Droit\User\Entities\User::find(1); $this->be($user); }
public function setUp() { parent::setUp(); $this->mock = Mockery::mock('App\\Droit\\Newsletter\\Service\\Mailjet'); $this->app->instance('App\\Droit\\Newsletter\\Service\\Mailjet', $this->mock); $this->worker = Mockery::mock('App\\Droit\\Newsletter\\Worker\\MailjetInterface'); $this->app->instance('App\\Droit\\Newsletter\\Worker\\MailjetInterface', $this->worker); $this->subscription = Mockery::mock('App\\Droit\\Newsletter\\Repo\\NewsletterUserInterface'); $this->app->instance('App\\Droit\\Newsletter\\Repo\\NewsletterUserInterface', $this->subscription); $this->newsletter = Mockery::mock('App\\Droit\\Newsletter\\Repo\\NewsletterInterface'); $this->app->instance('App\\Droit\\Newsletter\\Repo\\NewsletterInterface', $this->newsletter); $user = App\Droit\User\Entities\User::find(1); $this->be($user); }
public function setUp() { parent::setUp(); $this->mock = Mockery::mock('App\\Droit\\Newsletter\\Service\\Mailjet'); $this->app->instance('App\\Droit\\Newsletter\\Service\\Mailjet', $this->mock); $this->mailjet = Mockery::mock('App\\Droit\\Newsletter\\Worker\\MailjetInterface'); $this->app->instance('App\\Droit\\Newsletter\\Worker\\MailjetInterface', $this->mailjet); $this->worker = Mockery::mock('App\\Droit\\Newsletter\\Worker\\CampagneInterface'); $this->app->instance('App\\Droit\\Newsletter\\Worker\\CampagneInterface', $this->worker); $this->campagne = Mockery::mock('App\\Droit\\Newsletter\\Repo\\NewsletterCampagneInterface'); $this->app->instance('App\\Droit\\Newsletter\\Repo\\NewsletterCampagneInterface', $this->campagne); $this->helper = Mockery::mock('App\\Droit\\Helper\\Helper'); $user = App\Droit\User\Entities\User::find(1); $this->be($user); }