Test spambot_report_account() function with correct "api_key".

Fichier

tests/src/Kernel/SpambotUserspamTest.php, line 63

Classe

SpambotUserspamTest
Test spambot report account.

Namespace

Drupal\Tests\spambot\Kernel

Code

public function testSpambotReportSpamAccount() {
    $key = 'wqd31vfkhae9gn';
    $success = spambot_report_account($this->user, '130.176.13.140', 'title', $key);
    $this->assertTrue($success, 'Guzzle exception.');
}