From d51dc6cd07037b4967c4084b0ceb45f4032bad94 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 24 Nov 2016 00:48:50 +0100 Subject: [PATCH] NotOperatorTest: remove obsolete test --- .../Operators/NotOperatorTest.php | 36 ------------------- 1 file changed, 36 deletions(-) diff --git a/test/php/library/Businessprocess/Operators/NotOperatorTest.php b/test/php/library/Businessprocess/Operators/NotOperatorTest.php index 0185d59..9711b1e 100644 --- a/test/php/library/Businessprocess/Operators/NotOperatorTest.php +++ b/test/php/library/Businessprocess/Operators/NotOperatorTest.php @@ -46,42 +46,6 @@ class NotOperatorTest extends BaseTestCase ); } - public function testAnExpressionGivesTheCorrectResultForVariousStateCombinations() - { - $storage = new LegacyStorage($this->emptyConfigSection()); - $expression = 'a = ! b ! c ! d'; - $bp = $storage->loadFromString('dummy', $expression); - $a = $bp->getNode('a'); - $b = $bp->createBp('b')->setState(3); - $c = $bp->createBp('c')->setState(3); - $d = $bp->createBp('d')->setState(3); - $this->assertEquals( - 'OK', - $a->getStateName() - ); - - $a->clearState(); - $b->setState(0); - $this->assertEquals( - 'OK', - $a->getStateName() - ); - - $a->clearState(); - $c->setState(0); - $this->assertEquals( - 'OK', - $a->getStateName() - ); - - $a->clearState(); - $d->setState(0); - $this->assertEquals( - 'CRITICAL', - $a->getStateName() - ); - } - public function testThreeTimesCriticalIsOk() { $bp = $this->getBp();