public function setUp()
 {
     parent::setUp();
     SessionFactory::init(new MockArraySessionStorage());
     $char_id = TestAccountCreateAndDestroy::create_testing_account();
     SessionFactory::getSession()->set('player_id', $char_id);
 }
 public function setUp()
 {
     parent::setUp();
     $this->account_id = TestAccountCreateAndDestroy::account_id();
     $this->account = Account::findById($this->account_id);
     $this->nonce = Crypto::nonce();
 }
 public function setUp()
 {
     parent::setUp();
     // Mock the post request.
     $request = new Request([], []);
     RequestWrapper::inject($request);
     $this->login();
 }
 function setUp()
 {
     parent::setUp();
     // Mock the post request.
     $request = new Request([], ['worked' => 10]);
     RequestWrapper::inject($request);
     SessionFactory::init(new MockArraySessionStorage());
 }
 public function setUp()
 {
     parent::setUp();
     SessionFactory::init(new MockArraySessionStorage());
     $char_id = TestAccountCreateAndDestroy::create_testing_account();
     SessionFactory::getSession()->set('player_id', $char_id);
     $this->clan = Clan::create(Player::find($char_id), 'phpunit_test_clan');
 }
 public function setUp()
 {
     parent::setUp();
     SessionFactory::init(new MockArraySessionStorage());
     $char_id = TestAccountCreateAndDestroy::create_testing_account();
     SessionFactory::getSession()->set('player_id', $char_id);
     $request = new Request([], []);
     RequestWrapper::inject($request);
 }
 function setUp()
 {
     parent::setUp();
     $this->char = TestAccountCreateAndDestroy::char();
     $request = new Request([], []);
     RequestWrapper::inject($request);
     SessionFactory::init(new MockArraySessionStorage());
     $sess = SessionFactory::getSession();
     $sess->set('player_id', $this->char->id());
 }
 /**
  */
 public function setUp()
 {
     parent::setUp();
     // Mock the post request.
     $request = new Request([], []);
     RequestWrapper::inject($request);
     $this->char_id = TestAccountCreateAndDestroy::create_testing_account();
     $session = SessionFactory::init(new MockArraySessionStorage());
     $session->set('player_id', $this->char_id);
     $session->set('account_id', $this->char_id);
 }
 public function setUp()
 {
     parent::setUp();
     $this->controller = new InventoryController();
     $this->char = TestAccountCreateAndDestroy::char();
     $this->inventory = new Inventory($this->char);
     $request = new Request([], []);
     RequestWrapper::inject($request);
     SessionFactory::init(new MockArraySessionStorage());
     $sess = SessionFactory::getSession();
     $sess->set('player_id', $this->char->id());
     $this->inventory->add(self::ITEM);
 }
 public function setUp()
 {
     parent::setUp();
     $this->controller = new MapController();
 }