Skip to content

Commit

Permalink
Merge pull request #2 from andrey-helldar/analysis-4xGJOn
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
Andrey Helldar authored Aug 21, 2021
2 parents d28c72c + b43d81d commit db82a36
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 deletions.
14 changes: 7 additions & 7 deletions tests/DriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ class DriverTest extends TestCase

protected $model = RequestPayment::class;

protected function setUp(): void
{
parent::setUp();

$this->runSeeders();
}

public function testStart()
{
$response = $this->driver()->start();
Expand Down Expand Up @@ -81,13 +88,6 @@ public function testRefund()
$this->assertSame('REVOKED', $response->getStatus());
}

protected function setUp(): void
{
parent::setUp();

$this->runSeeders();
}

protected function driver(): DriverContract
{
$model = $this->payment();
Expand Down
12 changes: 0 additions & 12 deletions tests/Helpers/StatusesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ public function testHasCreated()

$this->assertFalse($this->status('UNKNOWN', 7)->hasCreated());

//

$this->assertTrue($this->status('UNKNOWN', 7)->hasCreated('CREATED'));

$this->assertFalse($this->status('UNKNOWN', 7)->hasCreated('REVERSED'));
Expand All @@ -63,8 +61,6 @@ public function testHasSuccess()

$this->assertFalse($this->status('UNKNOWN', 7)->hasSuccess());

//

$this->assertFalse($this->status('UNKNOWN', 7)->hasSuccess('CREATED'));

$this->assertFalse($this->status('UNKNOWN', 7)->hasSuccess('REVERSED'));
Expand All @@ -88,8 +84,6 @@ public function testHasFailed()

$this->assertFalse($this->status('UNKNOWN', 7)->hasFailed());

//

$this->assertFalse($this->status('UNKNOWN', 7)->hasFailed('CREATED'));

$this->assertFalse($this->status('UNKNOWN', 7)->hasFailed('REVERSED'));
Expand All @@ -113,8 +107,6 @@ public function testHasRefunding()

$this->assertFalse($this->status('UNKNOWN', 7)->hasRefunding());

//

$this->assertFalse($this->status('UNKNOWN', 7)->hasRefunding('CREATED'));

$this->assertFalse($this->status('UNKNOWN', 7)->hasRefunding('REVERSED'));
Expand All @@ -138,8 +130,6 @@ public function testHasRefunded()

$this->assertFalse($this->status('UNKNOWN', 7)->hasRefunded());

//

$this->assertFalse($this->status('UNKNOWN', 7)->hasRefunded('CREATED'));

$this->assertTrue($this->status('UNKNOWN', 7)->hasRefunded('REVERSED'));
Expand All @@ -163,8 +153,6 @@ public function testInProgress()

$this->assertFalse($this->status('UNKNOWN', 7)->inProgress());

//

$this->assertTrue($this->status('UNKNOWN', 7)->inProgress('CREATED'));

$this->assertFalse($this->status('UNKNOWN', 7)->inProgress('REVERSED'));
Expand Down

0 comments on commit db82a36

Please sign in to comment.