Longman\TelegramBot\Tests\Unit\WebhookInfoTest::testGetDataWithoutParams PHP Method

testGetDataWithoutParams() public method

Testing get data without params
    public function testGetDataWithoutParams()
    {
        unset($this->data['url']);
        $webhook = new WebhookInfo($this->data);
        $result = $webhook->getUrl();
        $this->assertNull($result);
        unset($webhook, $result);
        unset($this->data['has_custom_certificate']);
        $webhook = new WebhookInfo($this->data);
        $result = $webhook->getHasCustomCertificate();
        $this->assertNull($result);
        unset($webhook, $result);
        unset($this->data['pending_update_count']);
        $webhook = new WebhookInfo($this->data);
        $result = $webhook->getPendingUpdateCount();
        $this->assertNull($result);
        unset($webhook, $result);
        unset($this->data['last_error_date']);
        $webhook = new WebhookInfo($this->data);
        $result = $webhook->getLastErrorDate();
        $this->assertNull($result);
        unset($webhook, $result);
        unset($this->data['last_error_message']);
        $webhook = new WebhookInfo($this->data);
        $result = $webhook->getLastErrorMessage();
        $this->assertNull($result);
    }