Commit d4b896f6 by Klimov Paul

"ManagerTestBase::testExecuteBizRule()" has been fixed to not produce side effects on other tests.

parent 946f6552
...@@ -167,7 +167,7 @@ abstract class ManagerTestBase extends TestCase ...@@ -167,7 +167,7 @@ abstract class ManagerTestBase extends TestCase
$this->assertTrue($this->auth->executeBizRule(null, array(), null)); $this->assertTrue($this->auth->executeBizRule(null, array(), null));
$this->assertTrue($this->auth->executeBizRule('return 1 == true;', array(), null)); $this->assertTrue($this->auth->executeBizRule('return 1 == true;', array(), null));
$this->assertTrue($this->auth->executeBizRule('return $params[0] == $params[1];', array(1, '1'), null)); $this->assertTrue($this->auth->executeBizRule('return $params[0] == $params[1];', array(1, '1'), null));
$this->assertFalse($this->auth->executeBizRule('invalid', array(), null)); $this->assertFalse($this->auth->executeBizRule('invalid;', array(), null));
} }
public function testCheckAccess() public function testCheckAccess()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment