public function ExchangerProviderPluginTest::testPluginSettings in Commerce Exchanger 8
Test generic settings for plugins.
::@covers ::useCrossSync ::@covers ::isEnterprise
File
- tests/
src/ Kernel/ ExchangerProviderPluginTest.php, line 79
Class
- ExchangerProviderPluginTest
- @coversDefaultClass \Drupal\commerce_exchanger\Plugin\Commerce\ExchangerProvider\ExchangerProviderRemoteBase @group commerce_exchanger
Namespace
Drupal\Tests\commerce_exchanger\KernelCode
public function testPluginSettings() {
$this
->assertTrue($this->test
->useCrossSync());
$this
->assertFalse($this->test
->isEnterprise());
$this
->assertEqual('HRK', $this->test
->getBaseCurrency());
$this
->assertFalse($this->enterprise
->useCrossSync());
$this
->assertTrue($this->enterprise
->isEnterprise());
$this
->assertEmpty($this->enterprise
->getBaseCurrency());
}