phpbb_session_test_case::setUp PHP Method

setUp() public method

public setUp ( )
    function setUp()
    {
        parent::setUp();
        global $symfony_request, $phpbb_filesystem, $phpbb_path_helper, $request, $phpbb_root_path, $phpEx;
        $symfony_request = new \phpbb\symfony_request(new phpbb_mock_request());
        $phpbb_filesystem = new \phpbb\filesystem\filesystem();
        $phpbb_path_helper = new \phpbb\path_helper($symfony_request, $phpbb_filesystem, $this->getMock('\\phpbb\\request\\request'), $phpbb_root_path, $phpEx);
        $this->session_factory = new phpbb_session_testable_factory();
        $this->db = $this->new_dbal();
        $this->session_facade = new phpbb_session_testable_facade($this->db, $this->session_factory);
    }

Usage Example

Esempio n. 1
0
 public function setUp()
 {
     parent::setUp();
     $this->session = $this->session_factory->get_session($this->db);
     global $phpbb_container;
     $plugins = new \phpbb\di\service_collection($phpbb_container);
     $plugins->add('core.captcha.plugins.nogd');
     $phpbb_container->set('captcha.factory', new \phpbb\captcha\factory($phpbb_container, $plugins));
     $phpbb_container->set('core.captcha.plugins.nogd', new \phpbb\captcha\plugins\nogd());
 }
All Usage Examples Of phpbb_session_test_case::setUp
phpbb_session_test_case