You are here

public function SpambotUserspamTest::testSpambotReportSpamAccount in Spambot 8

Test spambot_report_account() function with correct "api_key".

File

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

Class

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.');
}