protected function tearDown() { TestAccountCreateAndDestroy::destroy(); RequestWrapper::inject(new Request([])); $session = SessionFactory::getSession(); $session->invalidate(); }
protected function tearDown() { TestAccountCreateAndDestroy::destroy(); if ($this->quest) { query('delete from quests where quest_id = :id and quest_id > 1', [':id' => $this->quest->id()]); } }
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(); }
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); }
function tearDown() { TestAccountCreateAndDestroy::destroy(); $this->message->delete(); }