You are here

public function BasicTest::testDefaultConfiguration in Payment 8.2

Same name in this branch
  1. 8.2 tests/src/Unit/Plugin/Payment/MethodConfiguration/BasicTest.php \Drupal\Tests\payment\Unit\Plugin\Payment\MethodConfiguration\BasicTest::testDefaultConfiguration()
  2. 8.2 tests/src/Unit/Plugin/Payment/Method/BasicTest.php \Drupal\Tests\payment\Unit\Plugin\Payment\Method\BasicTest::testDefaultConfiguration()
  3. 8.2 tests/src/Unit/Plugin/Payment/LineItem/BasicTest.php \Drupal\Tests\payment\Unit\Plugin\Payment\LineItem\BasicTest::testDefaultConfiguration()

@covers ::defaultConfiguration

File

tests/src/Unit/Plugin/Payment/LineItem/BasicTest.php, line 79

Class

BasicTest
@coversDefaultClass \Drupal\payment\Plugin\Payment\LineItem\Basic

Namespace

Drupal\Tests\payment\Unit\Plugin\Payment\LineItem

Code

public function testDefaultConfiguration() {
  $configuration = array(
    'currency_code' => NULL,
    'name' => NULL,
    'quantity' => 1,
    'amount' => 0,
    'description' => NULL,
  );
  $this
    ->assertEquals($configuration, $this->sut
    ->defaultConfiguration());
}