public function AndExpressionTest::testEmptyAnd in Rules 8.3
Tests an empty AND.
File
- tests/
src/ Unit/ AndExpressionTest.php, line 47
Class
- AndExpressionTest
- @coversDefaultClass \Drupal\rules\Plugin\RulesExpression\AndExpression @group Rules
Namespace
Drupal\Tests\rules\UnitCode
public function testEmptyAnd() {
$property = new \ReflectionProperty($this->and, 'conditions');
$property
->setAccessible(TRUE);
$this
->assertEmpty($property
->getValue($this->and));
$this
->assertFalse($this->and
->execute(), 'Empty AND returns FALSE.');
}