/** * {@inheritDoc} */ public function setUp() { parent::setUp(); // Foundation Controller expectations $this->app['sentinel']->shouldReceive('getUser'); $this->app['view']->shouldReceive('share'); }
/** * {@inheritDoc} */ public function setUp() { parent::setUp(); // Additional IoC bindings $this->app['extensions'] = m::mock('Cartalyst\\Extensions\\ExtensionBag'); $this->app['db'] = m::mock('Illuminate\\Database\\DatabaseManager'); // Platform $this->platform = new Platform($this->app, $this->app['extensions']); }
/** * {@inheritDoc} */ public function setUp() { parent::setUp(); $this->platform = m::mock('Platform\\Foundation\\Platform'); $this->installer = m::mock('Platform\\Installer\\Installer'); $this->filesystem = m::mock('Illuminate\\Filesystem\\Filesystem'); $this->app['router'] = m::mock('Illuminate\\Routing\\Router'); $this->app['router']->shouldReceive('filter')->once(); InstallerController::setRouter($this->app['router']); // Controller $this->controller = new InstallerController($this->platform, $this->installer, $this->filesystem); }
/** * Setup resources and dependencies. * * @return void */ public function setUp() { parent::setUp(); $this->repository = new Repository(); $this->installer = new Installer($this->app, $this->repository); }