Example #1
0
 public function setUp()
 {
     parent::setUp();
     $this->session = $this->getMockSession();
     $repository = $this->getMockPersonRepository();
     $permissionsProvider = $this->getMock(PermissionsProvider::class);
     $this->auth = $this->getMock(Auth::class, ['getPerson', 'loggedIn'], [$this->session, $repository, $permissionsProvider]);
     $this->auth->expects($this->any())->method('getPerson')->will($this->returnValue(new Person(['id' => 1])));
 }
Example #2
0
 public function setUp()
 {
     parent::setUp();
     $config = (include __DIR__ . '/../../../src/config/boomcms/assets.php');
     $this->types = $config['assets']['types'];
 }