protected function tearDown()
 {
     TestAccountCreateAndDestroy::destroy();
     RequestWrapper::inject(new Request([]));
     $session = SessionFactory::getSession();
     $session->invalidate();
 }
Esempio n. 2
0
 protected function tearDown()
 {
     TestAccountCreateAndDestroy::destroy();
     if ($this->quest) {
         query('delete from quests where quest_id = :id and quest_id > 1', [':id' => $this->quest->id()]);
     }
 }
Esempio n. 3
0
 function tearDown()
 {
     TestAccountCreateAndDestroy::destroy();
     if ($this->message_id !== null) {
         query('delete from messages where message_id = :id', [':id' => $this->message_id]);
     }
 }
 function tearDown()
 {
     removeItem($this->char->id(), self::ITEM);
     TestAccountCreateAndDestroy::destroy();
     RequestWrapper::inject(new Request([]));
     $session = SessionFactory::getSession();
     $session->invalidate();
 }
Esempio n. 5
0
 public function tearDown()
 {
     RequestWrapper::inject(new Request([]));
     $session = SessionFactory::getSession();
     $session->invalidate();
     TestAccountCreateAndDestroy::destroy();
     parent::tearDown();
 }
 public function tearDown()
 {
     $this->inventory->remove(self::ITEM);
     TestAccountCreateAndDestroy::destroy();
     RequestWrapper::inject(new Request([]));
     $session = SessionFactory::getSession();
     $session->invalidate();
     parent::tearDown();
 }
 public function testDoshinOfferSomeBountyOnATestPlayer()
 {
     $target_id = TestAccountCreateAndDestroy::create_alternate_testing_account(true);
     $this->char->set_gold(434343);
     $this->char->save();
     $target = new Player($target_id);
     $request = new Request(['target' => $target->name(), 'amount' => 600]);
     RequestWrapper::inject($request);
     $doshin = new DoshinController();
     $doshin->offerBounty();
     $new_bounty = (new Player($target->id()))->bounty();
     TestAccountCreateAndDestroy::destroy();
     $this->assertEquals(600, $new_bounty);
 }
Esempio n. 8
0
 function tearDown()
 {
     TestAccountCreateAndDestroy::destroy();
     $this->message->delete();
 }