Content-Length: 276908 | pFad | http://github.com/Payum/PaypalRest/commit/cc31f0d06025a1934395fd6800351d4a9e060a8b

4A Add Array CS set · Payum/PaypalRest@cc31f0d · GitHub
Skip to content

Commit

Permalink
Add Array CS set
Browse files Browse the repository at this point in the history
  • Loading branch information
pierredup committed Jul 14, 2022
1 parent 988d1ed commit cc31f0d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
16 changes: 12 additions & 4 deletions Tests/Action/StatusActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ public function testShouldMarkPendingIfStateCreated()

$this->assertTrue($request->isPending());

$model = new \ArrayObject(['state' => 'created']);
$model = new \ArrayObject([
'state' => 'created',
]);
$request = new GetBinaryStatus($model);

$action->execute($request);
Expand Down Expand Up @@ -102,7 +104,9 @@ public function testShouldMarkCapturedIfStateApproved()

$this->assertTrue($request->isCaptured());

$model = new \ArrayObject(['state' => 'approved']);
$model = new \ArrayObject([
'state' => 'approved',
]);
$request = new GetBinaryStatus($model);

$action->execute($request);
Expand All @@ -123,7 +127,9 @@ public function testShouldMarkCanceledIfStateCanceled()

$this->assertTrue($request->isCanceled());

$model = new \ArrayObject(['state' => 'cancelled']);
$model = new \ArrayObject([
'state' => 'cancelled',
]);
$request = new GetBinaryStatus($model);

$action->execute($request);
Expand All @@ -144,7 +150,9 @@ public function testShouldMarkUnknownIfStateIsSetAndSetUnknown()

$this->assertTrue($request->isUnknown());

$model = new \ArrayObject(['state' => 'random']);
$model = new \ArrayObject([
'state' => 'random',
]);
$request = new GetBinaryStatus($model);

$action->execute($request);
Expand Down
7 changes: 6 additions & 1 deletion Tests/PaypalRestGatewayFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,12 @@ public function testShouldConfigContainDefaultOptions()
$this->assertIsArray($config);

$this->assertArrayHasKey('payum.default_options', $config);
$this->assertEquals(['client_id' => '', 'client_secret' => '', 'config_path' => '', 'config' => []], $config['payum.default_options']);
$this->assertEquals([
'client_id' => '',
'client_secret' => '',
'config_path' => '',
'config' => [],
], $config['payum.default_options']);
}

public function testShouldConfigContainFactoryNameAndTitle()
Expand Down

0 comments on commit cc31f0d

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/Payum/PaypalRest/commit/cc31f0d06025a1934395fd6800351d4a9e060a8b

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy