Skip to content
This repository was archived by the owner on Oct 30, 2020. It is now read-only.

Commit

Permalink
Changes gateway method name
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Paul committed Oct 19, 2016
1 parent 11c0a35 commit d614320
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Moneris.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public static function create(string $id, string $token, array $params = [])
*
* @return \CraigPaul\Moneris\Gateway
*/
public function gateway()
public function connect()
{
return new Gateway($this->id, $this->token, $this->environment);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/GatewayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function setUp()
'environment' => $this->environment
];

$this->gateway = Moneris::create($this->id, $this->token, $this->params)->gateway();
$this->gateway = Moneris::create($this->id, $this->token, $this->params)->connect();
}

/** @test */
Expand Down
2 changes: 1 addition & 1 deletion tests/MonerisTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function it_can_retrieve_the_gateway_for_moneris()
{
$moneris = new Moneris($this->id, $this->token, $this->params);

$gateway = $moneris->gateway();
$gateway = $moneris->connect();

$this->assertEquals(Gateway::class, get_class($gateway));
$this->assertObjectHasAttribute('id', $gateway);
Expand Down

0 comments on commit d614320

Please sign in to comment.