<?php


namespace Test\DB;

use Framework\DB\Handler\PlayerDBPipe;
use Game\Constant\DBTableDefine;
use Test\TestBase;

class TestPipe extends TestBase
{

    public function getPlayerId(): int
    {
        return 233322222;
    }

    public function startTest()
    {
        PlayerDBPipe::getInstance()->start($this->getPlayerId());

        PlayerDBPipe::getInstance()->createTitle(DBTableDefine::TABLE_ITEM,
            $this->getPlayerId(), 1, array(
                "aaaa" => "a1111",
                "bbbb" => "b1111",
                "cccc" => "c1111"
            ),
            15);

        PlayerDBPipe::getInstance()->createTitle(DBTableDefine::TABLE_ROOM_TIME,
            $this->getPlayerId(), 1, array(
                "xxxxx" => "x1111",
                "yyyyy" => "y1111",
                "zzzzz" => "z1111"
            ),
            15);


        PlayerDBPipe::getInstance()->createTitle(DBTableDefine::TABLE_EVENT,
            $this->getPlayerId(), 1, array(
                "ssss" => "s1111",
                "dddd" => "d1111",
                "ffff" => "f1111"
            ),
            15);

        PlayerDBPipe::getInstance()->finish();
    }

}

