diff --git a/tests/GatewayTest.php b/tests/GatewayTest.php index 860f775..4972d89 100644 --- a/tests/GatewayTest.php +++ b/tests/GatewayTest.php @@ -14,20 +14,6 @@ class GatewayTest extends TestCase */ protected $gateway; - /** - * The environment used for connecting to the Moneris API. - * - * @var string - */ - protected $environment; - - /** - * The Moneris store id. - * - * @var string - */ - protected $id; - /** * The Moneris API parameters. * @@ -35,13 +21,6 @@ class GatewayTest extends TestCase */ protected $params; - /** - * The Moneris API token. - * - * @var string - */ - protected $token; - /** * Set up the test environment. * @@ -51,13 +30,7 @@ public function setUp() { parent::setUp(); - $this->id = 'store1'; - $this->token = 'yesguy'; - $this->environment = Moneris::ENV_TESTING; - $this->params = [ - 'environment' => $this->environment - ]; - + $this->params = ['environment' => $this->environment]; $this->gateway = Moneris::create($this->id, $this->token, $this->params)->connect(); } diff --git a/tests/MonerisTest.php b/tests/MonerisTest.php index 9dacd68..4e0c4f7 100644 --- a/tests/MonerisTest.php +++ b/tests/MonerisTest.php @@ -5,13 +5,6 @@ class MonerisTest extends TestCase { - /** - * The Moneris store id. - * - * @var string - */ - protected $id; - /** * The Moneris API parameters. * @@ -19,13 +12,6 @@ class MonerisTest extends TestCase */ protected $params; - /** - * The Moneris API token. - * - * @var string - */ - protected $token; - /** * Set up the test environment. * @@ -35,8 +21,6 @@ public function setUp() { parent::setUp(); - $this->id = 'store1'; - $this->token = 'yesguy'; $this->params = [ 'environment' => Moneris::ENV_TESTING ]; diff --git a/tests/TestCase.php b/tests/TestCase.php index a24ed3a..6b9988a 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -1,5 +1,7 @@ amex = '373599005095005'; $this->mastercard = '5454545454545454'; $this->visa = '4242424242424242'; + + $this->id = 'store1'; + $this->token = 'yesguy'; + $this->environment = Moneris::ENV_TESTING; } } \ No newline at end of file