Skip to content

Commit

Permalink
Fixed assertInternalType deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
Linus Juhlin authored and pierredup committed Apr 10, 2021
1 parent 8215d36 commit b2610c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/PaypalRestGatewayFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public function shouldAllowCreateGatewayConfig()

$config = $factory->createConfig();

$this->assertInternalType('array', $config);
$this->assertIsArray($config);
$this->assertNotEmpty($config);
}

Expand All @@ -153,7 +153,7 @@ public function shouldAddDefaultConfigPassedInConstructorWhileCreatingGatewayCon

$config = $factory->createConfig();

$this->assertInternalType('array', $config);
$this->assertIsArray($config);

$this->assertArrayHasKey('foo', $config);
$this->assertEquals('fooVal', $config['foo']);
Expand All @@ -171,7 +171,7 @@ public function shouldConfigContainDefaultOptions()

$config = $factory->createConfig();

$this->assertInternalType('array', $config);
$this->assertIsArray($config);

$this->assertArrayHasKey('payum.default_options', $config);
$this->assertEquals(['client_id' => '', 'client_secret' => '', 'config_path' => '', 'config' => []], $config['payum.default_options']);
Expand All @@ -186,7 +186,7 @@ public function shouldConfigContainFactoryNameAndTitle()

$config = $factory->createConfig();

$this->assertInternalType('array', $config);
$this->assertIsArray($config);

$this->assertArrayHasKey('payum.factory_name', $config);
$this->assertEquals('paypal_rest', $config['payum.factory_name']);
Expand Down

0 comments on commit b2610c9

Please sign in to comment.