コード例 #1
0
 /**
  * Initialise product controller with mock dependencies.
  */
 public function setUp()
 {
     parent::setUp();
     $this->imageRepository = $this->mockery(ImageRepository::class);
     $this->tagRepository = $this->makeMock(TagRepository::class);
     $this->productController = new ProductController($this->catalogueRepository(), $this->webUi());
 }
コード例 #2
0
 /**
  * Set up static controller with mock dependencies.
  */
 public function setUp()
 {
     parent::setUp();
     $this->staticController = new StaticController($this->viewFactory(), $this->responseFactory());
 }
コード例 #3
0
 /**
  * Set up tag controller with mock dependencies.
  */
 public function setUp()
 {
     parent::setUp();
     $this->tagRepository = $this->makeMock(TagRepository::class);
     $this->tagController = new TagController($this->tagRepository, $this->viewFactory(), $this->responseFactory());
 }
コード例 #4
0
 /**
  * Set up dashboard controller with mock dependencies.
  */
 public function setUp()
 {
     parent::setUp();
     $this->dashboardController = new DashboardController($this->webUi());
 }
コード例 #5
0
 /**
  * Set up tag controller with mock dependencies.
  */
 public function setUp()
 {
     parent::setUp();
     $this->tagRepository = $this->makeMock(TagRepository::class);
     $this->tagController = new TagController($this->tagRepository, $this->productRepository(), $this->webUi());
 }