public function ConvertBooleanTest::testConvertBooleanBasicFunctionality in Tamper 8
Test convert to boolean basic functionality.
File
- tests/
src/ Unit/ Plugin/ Tamper/ ConvertBooleanTest.php, line 32
Class
- ConvertBooleanTest
- Tests the convert boolean plugin.
Namespace
Drupal\Tests\tamper\Unit\Plugin\TamperCode
public function testConvertBooleanBasicFunctionality() {
$this
->assertEquals(TRUE, $this->plugin
->tamper('A'));
$this
->assertEquals(TRUE, $this->plugin
->tamper('a'));
$this
->assertEquals(FALSE, $this->plugin
->tamper('B'));
$this
->assertEquals(FALSE, $this->plugin
->tamper('b'));
$this
->assertEquals('No match', $this->plugin
->tamper('c'));
$this
->assertEquals('No match', $this->plugin
->tamper('C'));
}