<?php


namespace Test\DB;

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


class TestSearchTable extends TestBase
{
    use PlayerDBHandler;

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

    public function startTest()
    {
        /*
        $this->createTitle(DBTableDefine::TABLE_ITEM,
            $this->getPlayerId(), 1, array(
                "aaaa" => "a1111",
                "bbbb" => "b1111",
                "cccc" => "c1111"
            ),
            15);

        $this->createTitle(DBTableDefine::TABLE_ITEM,
            $this->getPlayerId(), 2, array(
                "aaaa" => "a2222",
                "bbbb" => "b2222",
                "cccc" => "c2222"
            ),
            15);

        $this->createTitle(DBTableDefine::TABLE_ITEM,
        $this->getPlayerId(), 3, array(
            "aaaa" => "a3333",
            "bbbb" => "b3333",
            "cccc" => "c3333"
        ),
        15);

        $this->createTitle(DBTableDefine::TABLE_ITEM,
        $this->getPlayerId(), 4, array(
            "aaaa" => "a4444",
            "bbbb" => "b4444",
            "cccc" => "c4444"
        ),
        15);

        $this->createTitle(DBTableDefine::TABLE_ITEM,
        $this->getPlayerId(), 5, array(
            "aaaa" => "a5555",
            "bbbb" => "b5555",
            "cccc" => "c5555"
        ),
        15);
*/
        $ret = array();
        $this->searchTable(DBTableDefine::TABLE_ITEM,
            $this->getPlayerId(), $ret);

        var_dump($ret);

        $ret1 = array();
        $this->searchTitleMulti(DBTableDefine::TABLE_ITEM,
            $this->getPlayerId(), array(1,3,4), $ret1);

        var_dump($ret1);
    }
}