<?php

namespace Test\Mail;

use Framework\Lib\Utils;
use Framework\Logic\CommonDataLogic;
use Framework\Logic\CommonMailLogic;
use Framework\Logic\CommonTimerLogic;
use Test\TestBase;

class TestCommonMail extends TestBase
{
    use CommonMailLogic;
    use CommonDataLogic;
    use CommonTimerLogic;

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

    public function startTest()
    {
        $tplId = 1;
        $receiveTime = Utils::getServerTimestamp();

        $ret = $this->createCommonMail($tplId, $receiveTime);
        var_dump($ret);

        $mailList = $this->getCommonMailByIndex(array(1,2));
        var_dump($mailList);

        $ret = $this->delCommonMail(array(1));
        var_dump($ret);
    }
}