From 8cfdcfd345ac25ca0cb7f21aae9696d22ccaf6ed Mon Sep 17 00:00:00 2001
From: Chaitanya Anil Kulkarni <chaitanyakul@cybage.com>
Date: Feb 14, 2017 2:32:46 PM

$this->t should be used for translator.

diff --git a/src/Tests/IpAnonymizeTestCase.php b/src/Tests/IpAnonymizeTestCase.php
index c79dea3..b19c577 100644
--- a/src/Tests/IpAnonymizeTestCase.php
+++ b/src/Tests/IpAnonymizeTestCase.php
@@ -3,6 +3,7 @@
 namespace Drupal\ip_anon\Tests;
 
 use Drupal\simpletest\WebTestBase;
+use Drupal\Core\StringTranslation\StringTranslationTrait;
 
 /**
  * Tests basic IP Anonymize functionality.
@@ -10,6 +11,8 @@
  * @group IP Anonymize
  */
 class IpAnonymizeTestCase extends WebTestBase {
+
+  use StringTranslationTrait;
 
   /**
    * Modules to enable.
@@ -29,7 +32,7 @@
 
     $config['policy'] = 1;
     $config['period_watchdog'] = 0;
-    $this->drupalPostForm('admin/config/people/ip_anon', $config, t('Save configuration'));
+    $this->drupalPostForm('admin/config/people/ip_anon', $config, $this->t('Save configuration'));
 
     $this->cronRun();
 
