示例#1
0
 /**
  * {@inheritDoc}
  */
 public function setUp()
 {
     parent::setUp();
     // Foundation Controller expectations
     $this->app['sentinel']->shouldReceive('getUser');
     $this->app['view']->shouldReceive('share');
 }
示例#2
0
 /**
  * {@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);
 }
示例#4
0
 /**
  * Setup resources and dependencies.
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->repository = new Repository();
     $this->installer = new Installer($this->app, $this->repository);
 }